Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions web-assets/js/setupAuth0WithRedirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,19 +597,23 @@ const authSetup = function () {
}

function changeWindowMessage() {
try {
if ((!returnAppUrl && !appUrl) || ((returnAppUrl == 'undefined') && (appUrl == 'undefined'))) {

if ((!returnAppUrl && !appUrl) || ((returnAppUrl == 'undefined') && (appUrl == 'undefined'))) {
try {
var hdomain = location.hostname.split('.').reverse()[1];
var linkurl = "http://" + window.location.host + "/?logout=true&retUrl=http://" + window.location.host;
if (hdomain) {
linkurl = "https://" + window.location.host + "/?logout=true&retUrl=https://" + hdomain + ".com";
}
document.getElementById("page-title-heading").innerHTML = "Alert";
document.getElementById("loading_message_p").innerHTML = "Login/Logout action is not called. Please check return url (retUrl) value in query parameters or <a href=" + linkurl + ">click here</a>";
} catch (err) {
logger("Error in changing loading message: ", err.message)
} else if (returnAppUrl || appUrl) {
document.getElementById("loading_message_p").innerHTML = "Wait Login processing ...";
} else if (shouldLogout) {
document.getElementById("loading_message_p").innerHTML = "Wait Logout processing ...";
}
} catch (err) {
logger("Error in changing loading message: ", err.message)
}
}

Expand Down