diff --git a/src/mobx/stores/Layout.ts b/src/mobx/stores/Layout.ts index 68e6758b..14c551a5 100644 --- a/src/mobx/stores/Layout.ts +++ b/src/mobx/stores/Layout.ts @@ -169,6 +169,9 @@ export default class Layout implements Store, Persistent { * @param path Pathname */ @action setLastHomePath(path: string) { + if (path.startsWith("/bot")) return; + if (path.startsWith("/invite")) return; + this.lastHomePath = path; this.lastSection = "home"; }