From d3a24b06c2ec09c14d74451fe4713e236665e27c Mon Sep 17 00:00:00 2001 From: _Bastler <_Bastler@bstly.de> Date: Mon, 20 Sep 2021 19:31:51 +0200 Subject: [PATCH] change room slug --- front/src/Url/UrlManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/Url/UrlManager.ts b/front/src/Url/UrlManager.ts index f1e15db1..6a5e6ead 100644 --- a/front/src/Url/UrlManager.ts +++ b/front/src/Url/UrlManager.ts @@ -38,7 +38,7 @@ class UrlManager { } public pushRoomIdToUrl(room: Room): void { - if (window.location.pathname === room.id) return; + if (window.location.pathname === room.id || room.isPublic) return; //Set last room visited! (connected or nor, must to be saved in localstorage and cache API) localUserStore.setLastRoomUrl(room.key); const hash = window.location.hash;