🐛 répare les liens entre langage

pull/424/head
Johan Girod 2018-11-15 12:44:26 +01:00
parent 6809056e97
commit 2d0729c199
1 changed files with 5 additions and 3 deletions

View File

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