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:
Max Goodman
2013-03-09 01:10:12 -08:00
parent 9613d65d6e
commit 386e6dda39

View File

@@ -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: