From 2d0729c1990847212e48773ada690b9e0ca1645b Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 15 Nov 2018 12:44:26 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20r=C3=A9pare=20les=20liens=20entre=20lan?= =?UTF-8?q?gage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js b/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js index d003a969a..abcf202d4 100644 --- a/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js +++ b/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js @@ -17,12 +17,14 @@ import './Footer.css' import betaGouvSvg from './logo-betagouv.svg' import Privacy from './Privacy' const Footer = ({ colours: { colour } }) => { - const hrefLink = hrefLangLink[i18n.language][ - decodeURIComponent(window.location.pathname).replace(/^\/$/, '') + decodeURIComponent( + (process.env.NODE_ENV === 'production' ? window.location.host : '') + + window.location.pathname + ).replace(/^\/$/, '') ] || [] - console.log('yayayayyay', hrefLangLink, hrefLink) + console.log(hrefLangLink, hrefLink) return (