mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Add case to menu selected matching logic for multis.
Since the multi name doesn't get stripped from the internal URL path like for subreddits, we need to check for them slightly differently.
This commit is contained in:
@@ -305,6 +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:
|
||||
return True
|
||||
if self.bare_path and self.stripped_path.startswith(self.bare_path):
|
||||
return True
|
||||
if self.stripped_path in self.aliases:
|
||||
|
||||
Reference in New Issue
Block a user