提交 091a5930 编写于 作者: C Carlos Antonio da Silva

Only concatenate path if it was given rather than converting blindly

上级 fafff357
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册