Fix bug when link to a page doesn't work if it has ? in its title (#1634)
This commit is contained in:
@@ -61,7 +61,10 @@ module Precious
|
||||
url.compact!
|
||||
return nil if url.empty?
|
||||
|
||||
::File.join(*url).gsub(%r{/{2,}}, '/')
|
||||
_url = ::File.join(*url)
|
||||
_url.gsub!(%r{/{2,}}, '/')
|
||||
_url.gsub!(%r{\?}, '%3F')
|
||||
_url
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user