I have some issues with the links that behave differently when I deploy my Hugo website locally and on Netlify, I don’t understand why, but locally it work perfectly fine.
The problem is probably with i18n since I want to make my website multilangual. The issue comes when you click on the EN flag and then try to browse the gallery ( top nav bar )
Description of the problem :
- After clicking on the english flag and then the gallery button the url use twice the “en” in the URL: patia-78719d.netlify.com/en/en/gallery.
- After clicking on gallery and then browse it, it duplicate the “gallery” word in the URL.
Here is the source code: https://gitlab.com/Kyliux/blog/
Here is the page : https://5e5df593c153dc000831d1b9--ecstatic-hypatia-78719d.netlify.com/
Key files are the following
“layout/gallery/branch” for the gallery"
“layout/partial/nav.html” for the navbar"
Any help would be greatly appreciated !