We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9daeeb commit f73918dCopy full SHA for f73918d
web-assets/js/setupAuth0WithRedirect.js
@@ -367,6 +367,20 @@ const authSetup = function () {
367
const sso_pattern = '/#!/sso-login';
368
const logout_pattern = '/#!/logout?';
369
370
+ const url = window.location.href;
371
+
372
+ const result = url.match(/^(.+)(\#!\/(.+)\?)(.+)/);
373
374
+ if (result) {
375
+ try {
376
+ const newUrl = result[1] + "?" + result[4];
377
+ logger("new url: ", newUrl);
378
+ window.location.href = newUrl;
379
+ } catch (e) {
380
+ logger("Creating new url error: ", e.message);
381
+ }
382
383
+ // Need to cleanup below code, should never execute
384
if (window.location.href.indexOf(pattern) > -1) {
385
window.location.href = window.location.href.replace(pattern, '');
386
}
0 commit comments