Permalink
Browse files

Only concatenate path if it was given rather than converting blindly

  • Loading branch information...
1 parent fafff35 commit 091a59301f65601b47c7022ac5028b7f6b569e00 @carlosantoniodasilva carlosantoniodasilva committed Jul 31, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/http/url.rb
@@ -50,7 +50,7 @@ def full_url_for(options)
def path_for(options)
path = options[:script_name].to_s.chomp("/")
- path << options[:path].to_s
+ path << options[:path] if options.key?(:path)
path = add_trailing_slash(path) if options[:trailing_slash]
path = add_params(path, options[:params]) if options.key?(:params)
path = add_anchor(path, options[:anchor]) if options.key?(:anchor)

0 comments on commit 091a593

Please sign in to comment.