From fdff1bf9c68a21f4ada2bd61fe8115b440b5a6dc Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 15 Nov 2018 13:22:56 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20r=C3=A9pare=20les=20liens=20entre=20lan?= =?UTF-8?q?gage=20v2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mycompanyinfrance.fr/layout/Footer/Footer.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js b/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js index abcf202d4..345750788 100644 --- a/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js +++ b/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js @@ -20,11 +20,18 @@ const Footer = ({ colours: { colour } }) => { const hrefLink = hrefLangLink[i18n.language][ decodeURIComponent( - (process.env.NODE_ENV === 'production' ? window.location.host : '') + - window.location.pathname + (process.env.NODE_ENV === 'production' + ? window.location.protocol + '//' + window.location.host + : '') + window.location.pathname ).replace(/^\/$/, '') ] || [] - console.log(hrefLangLink, hrefLink) + console.log( + hrefLangLink, + hrefLink, + (process.env.NODE_ENV === 'production' + ? window.location.protocol + '//' + window.location.host + : '') + window.location.pathname + ) return (