mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
Fix case sensitivity in "hot/top/new" tab menu highlighting.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user