Issue #4476 has been reported by Akinori MUSHA.

----------------------------------------
Bug #4476: [PATCH] URI('http://hoge/b/').route_to('http://hoge/b') wrongly returns './'
http://redmine.ruby-lang.org/issues/4476

Author: Akinori MUSHA
Status: Open
Priority: Normal
Assignee: 
Category: lib
Target version: 
ruby -v: ruby 1.9.3dev (2011-03-03 trunk 31011) [x86_64-freebsd8]


When it should be '../b'.

I revamped URI::Generic#route_from_path so that (trailing) slashes are properly and explicitly handled.
Please review the attached patch.


-- 
http://redmine.ruby-lang.org