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;