AUTH#1318 - Retour button test

This commit is contained in:
slothy 2015-09-11 13:34:36 +02:00
parent 9a703e2083
commit fd9a307039
1 changed files with 3 additions and 0 deletions

View File

@ -79,11 +79,14 @@
try {
var parsed_referrer = new URL(document.referrer);
if (parsed_referrer.hostname.includes("lesechos")) {
alert("FUUUUUUUUUUUUUUU");
document.location = parsed_referrer.origin;
} else {
alert("MANGOSTA");
document.location.href = "http://www.lesechos-solutions.fr";
}
} catch(err) {
alert("LANGOSTA");
document.location.href = "http://www.lesechos-solutions.fr";
}
}