Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
adding base url to menu comparison
  • Loading branch information
renatonitta committed Jul 16, 2014
1 parent 5de5e1a commit 4965271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/custom_helpers.rb
Expand Up @@ -6,6 +6,6 @@ def menu_tag(url, label)
end

def active_css(url)
'active' if current_page.url == (base_url + url)
'active' if (base_url + current_page.url) == (base_url + url)
end
end

0 comments on commit 4965271

Please sign in to comment.