Fix bug when link to a page doesn't work if it has ? in its title (#1634)

This commit is contained in:
Nikita Ivanov
2020-12-13 17:42:19 +05:00
committed by GitHub
parent bfbfb21c17
commit c87c8c446e
+4 -1
View File
@@ -61,7 +61,10 @@ module Precious
url.compact! url.compact!
return nil if url.empty? 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
end end