Fix wiki pages incorrectly highlighting in the footer.

This commit is contained in:
Matt Lee
2015-04-07 15:23:49 -07:00
parent 0df5ed1859
commit 722e28f23e

View File

@@ -309,6 +309,8 @@ class NavButton(Styled):
def is_selected(self):
stripped_path = _force_unicode(request.path.rstrip('/').lower())
if not (self.sr_path or c.default_sr):
return False
if stripped_path == self.bare_path:
return True
site_path = c.site.user_path.lower() + self.bare_path