Skip to content

Commit 65db7b4

Browse files
author
Sachin Maheshwari
committed
correcting logout url
1 parent 0624c73 commit 65db7b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web-assets/js/setupAuth0.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ const authSetup = function () {
283283
function correctOldUrl() {
284284
const pattern = '#!/member';
285285
const sso_pattern = '/#!/sso-login';
286+
const logout_pattern = '/#!/logout?';
286287

287288
if (window.location.href.indexOf(pattern) > -1) {
288289
window.location.href = window.location.href.replace(pattern, '');
@@ -291,6 +292,10 @@ const authSetup = function () {
291292
if (window.location.href.indexOf(sso_pattern) > -1) {
292293
window.location.href = window.location.href.replace(sso_pattern, '');
293294
}
295+
296+
if (window.location.href.indexOf(logout_pattern) > -1) {
297+
window.location.href = window.location.href.replace(logout_pattern, '/?logout=true&');
298+
}
294299
}
295300

296301
init();

0 commit comments

Comments
 (0)