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 (