From 083db9379fdc543715b4f4211066e01b5fb77899 Mon Sep 17 00:00:00 2001 From: slothy Date: Fri, 11 Sep 2015 13:36:05 +0200 Subject: [PATCH] AUTH#1318 - Retour button test --- .../templates/authentic2/login_password_form.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/theme-authentic2/templates/authentic2/login_password_form.html b/theme-authentic2/templates/authentic2/login_password_form.html index 95062a3..05d4d8e 100644 --- a/theme-authentic2/templates/authentic2/login_password_form.html +++ b/theme-authentic2/templates/authentic2/login_password_form.html @@ -79,14 +79,11 @@ try { var parsed_referrer = new URL(document.referrer); if (parsed_referrer.hostname.includes("lesechos")) { - alert("FUUUUUUUUUUUUUUU"); - document.location = parsed_referrer.origin; + document.location.href = 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"; } }