diff --git a/pages/app/presenters/refinery/pages/menu_presenter.rb b/pages/app/presenters/refinery/pages/menu_presenter.rb index e39a6e6c85..95028c36db 100644 --- a/pages/app/presenters/refinery/pages/menu_presenter.rb +++ b/pages/app/presenters/refinery/pages/menu_presenter.rb @@ -89,7 +89,7 @@ def selected_item?(item) url = find_url_for(item) # Now use all possible vectors to try to find a valid match - [path, URI.decode(path)].include?(url) || path == "/#{item.original_id}" + [path, CGI.unescape(path)].include?(url) || path == "/#{item.original_id}" end def menu_item_css(menu_item, index) @@ -136,4 +136,4 @@ def find_url_for(item) end end end -end \ No newline at end of file +end