From a559fb7c0fb8c6989966db9e2504be8308ef0cd9 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Thu, 13 Jun 2013 02:02:02 -0700 Subject: [PATCH] Fix case sensitivity in "hot/top/new" tab menu highlighting. --- r2/r2/lib/menus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/r2/r2/lib/menus.py b/r2/r2/lib/menus.py index 7be6a960b..c339c608f 100644 --- a/r2/r2/lib/menus.py +++ b/r2/r2/lib/menus.py @@ -305,7 +305,8 @@ class NavButton(Styled): else: if self.stripped_path == self.bare_path: return True - if self.sr_path and self.stripped_path == c.site.path + self.bare_path: + site_path = c.site.path.lower() + self.bare_path + if self.sr_path and self.stripped_path == site_path: return True if self.bare_path and self.stripped_path.startswith(self.bare_path): return True