From: Akinori MUSHA Date: 2011-03-07T17:49:55+09:00 Subject: [ruby-core:35444] [Ruby 1.9 - Bug #4476][Open] [PATCH] URI('http://hoge/b/').route_to('http://hoge/b') wrongly returns './' 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