🐛 répare les liens entre langage v2
parent
2d0729c199
commit
fdff1bf9c6
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue