forked from abner/for-legacy-web
fix: ignore bot and server invites in layout paths
parent
5768ff7c2f
commit
90a53452e8
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue