Merge pull request #714 from bhollis/link_to
3.0.8/3.0.9 breaks middleman-blog's `tag_path` method
This commit is contained in:
commit
8e7a87e167
|
@ -176,14 +176,13 @@ module Middleman
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Support a :query option that can be a string or hash
|
||||
query = options.delete(:query)
|
||||
if query
|
||||
uri = URI(args[url_arg_index])
|
||||
uri.query = query.respond_to?(:to_param) ? query.to_param : query.to_s
|
||||
args[url_arg_index] = uri.to_s
|
||||
# Support a :query option that can be a string or hash
|
||||
if query = options.delete(:query)
|
||||
uri = URI(args[url_arg_index])
|
||||
uri.query = query.respond_to?(:to_param) ? query.to_param : query.to_s
|
||||
args[url_arg_index] = uri.to_s
|
||||
end
|
||||
end
|
||||
|
||||
super(*args, &block)
|
||||
|
|
Loading…
Reference in a new issue