lib/simple_navigation/adapters/sinatra.rb in simple-navigation-3.3.2 vs lib/simple_navigation/adapters/sinatra.rb in simple-navigation-3.3.3
- old
+ new
@@ -32,9 +32,10 @@
if url_string.index("?")
uri = request_uri
else
uri = request_uri.split('?').first
end
+ uri = CGI.unescape(uri)
if url_string =~ /^\w+:\/\//
url_string == "#{request.scheme}://#{request.host_with_port}#{uri}"
else
url_string == uri
end