mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
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