From ee7ae189016af517300578a9f592a1433527c68f Mon Sep 17 00:00:00 2001 From: slothy Date: Fri, 11 Sep 2015 13:39:49 +0200 Subject: [PATCH] AUTH#1318 - Retour button test --- .../templates/authentic2/login_password_form.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/theme-authentic2/templates/authentic2/login_password_form.html b/theme-authentic2/templates/authentic2/login_password_form.html index 05d4d8e..00c702f 100644 --- a/theme-authentic2/templates/authentic2/login_password_form.html +++ b/theme-authentic2/templates/authentic2/login_password_form.html @@ -79,12 +79,12 @@ try { var parsed_referrer = new URL(document.referrer); if (parsed_referrer.hostname.includes("lesechos")) { - document.location.href = parsed_referrer.origin; + window.location.href = parsed_referrer.origin; } else { - document.location.href = "http://www.lesechos-solutions.fr"; + window.location.href = "http://www.lesechos-solutions.fr"; } } catch(err) { - document.location.href = "http://www.lesechos-solutions.fr"; + window.location.href = "http://www.lesechos-solutions.fr"; } }