Skip to content

Commit 0624c73

Browse files
author
Sachin Maheshwari
committed
replacing sso-login from url
1 parent 6d7dc41 commit 0624c73

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

web-assets/js/setupAuth0.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,16 @@ const authSetup = function () {
281281
}
282282

283283
function correctOldUrl() {
284-
let pattern = '#!/member';
285-
if (window.location.href.indexOf(pattern) > -1) {
284+
const pattern = '#!/member';
285+
const sso_pattern = '/#!/sso-login';
286+
287+
if (window.location.href.indexOf(pattern) > -1) {
286288
window.location.href = window.location.href.replace(pattern, '');
287289
}
290+
291+
if (window.location.href.indexOf(sso_pattern) > -1) {
292+
window.location.href = window.location.href.replace(sso_pattern, '');
293+
}
288294
}
289295

290296
init();

0 commit comments

Comments
 (0)