Skip to content

Commit 9a4ded1

Browse files
author
Sachin Maheshwari
committed
plat-700
1 parent f76e7e0 commit 9a4ded1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web-assets/js/setupAuth0WithRedirect.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,14 @@ const authSetup = function () {
243243
if (appUrl.indexOf(discord_pattern) > -1) {
244244
try {
245245
var newUrl = new URL(appUrl);
246-
window.location = newUrl.searchParams.append(
246+
newUrl.searchParams.append(
247247
"token",
248248
getCookie(v3JWTCookie)
249-
).href;
249+
);
250+
window.location = newUrl.href;
250251
} catch (e) {
251-
logger("Error in redirect to discord", e.message)
252+
logger("Error in redirect to discord", e.message);
253+
window.location = appUrl;
252254
}
253255
} else {
254256
window.location = appUrl;

0 commit comments

Comments
 (0)