lib/simple_navigation/item.rb in simple-navigation-4.0.4 vs lib/simple_navigation/item.rb in simple-navigation-4.0.5
- old
+ new
@@ -151,9 +151,10 @@
relevant_url
end
def selected_by_autohighlight?
return false unless auto_highlight?
+ return false unless self.url
root_path_match? ||
(url_for_autohighlight && SimpleNavigation.current_page?(url_for_autohighlight)) ||
autohighlight_by_subpath?
end