🐛 répare les liens entre langage v2

pull/424/head
Johan Girod 2018-11-15 13:22:56 +01:00
parent 2d0729c199
commit fdff1bf9c6
1 changed files with 10 additions and 3 deletions

View File

@ -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 (
<div className="footer-container">
<Helmet>