From 4a8762c5811bffc88949cd966b387beb5d91c654 Mon Sep 17 00:00:00 2001 From: Michael Koppen Date: Thu, 23 Apr 2020 16:43:03 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Incorrect=20website=20URL=20when=20leavi?= =?UTF-8?q?ng=20a=20guest=20room=20(WEBAPP-68=E2=80=A6=20(#8618)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/script/main/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/script/main/app.js b/src/script/main/app.js index 03597aa6cad..2f78aa49fa3 100644 --- a/src/script/main/app.js +++ b/src/script/main/app.js @@ -867,9 +867,7 @@ class App { const isTemporaryGuestReason = App.CONFIG.SIGN_OUT_REASONS.TEMPORARY_GUEST.includes(signOutReason); const isLeavingGuestRoom = isTemporaryGuestReason && this.repository.user.isTemporaryGuest(); if (isLeavingGuestRoom) { - const path = t('urlWebsiteRoot'); - const url = getWebsiteUrl(path); - return window.location.replace(url); + return window.location.replace(getWebsiteUrl()); } doRedirect(signOutReason);