forked from abner/for-legacy-web
fix: ignore bot and server invites in layout paths
This commit is contained in:
@@ -169,6 +169,9 @@ export default class Layout implements Store, Persistent<Data> {
|
||||
* @param path Pathname
|
||||
*/
|
||||
@action setLastHomePath(path: string) {
|
||||
if (path.startsWith("/bot")) return;
|
||||
if (path.startsWith("/invite")) return;
|
||||
|
||||
this.lastHomePath = path;
|
||||
this.lastSection = "home";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user