Skip to content

Commit

Permalink
fix: Incorrect website URL when leaving a guest room (WEBAPP-68… (#8618)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yserz committed Apr 23, 2020
1 parent 678bfe5 commit 4a8762c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/script/main/app.js
Expand Up @@ -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);
Expand Down

0 comments on commit 4a8762c

Please sign in to comment.