diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ee6590a..1d1e2fe 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -22,8 +22,12 @@ # Determines whether or not the URL path passed matches with the full path (including params) of the last URL requested. # see http://api.rubyonrails.org/classes/ActionDispatch/Request.html#method-i-fullpath for details # --------------------------------------------------------------------------- - def isActivePage(path) - return request.fullpath.include?(path) + def isActivePage(path, exact_match = false) + if exact_match + return request.fullpath == path + else + return request.fullpath.include?(path) + end end def fingerprinted_asset(name) diff --git a/app/views/plans/_navigation.html.erb b/app/views/plans/_navigation.html.erb index 5956234..7a9cb3c 100644 --- a/app/views/plans/_navigation.html.erb +++ b/app/views/plans/_navigation.html.erb @@ -1,6 +1,6 @@ <% phases = Phase.titles(plan.template.id) %>