gethugothemes / dot-hugo

Dot - Hugo Documentation Theme
https://gethugothemes.com/products/dot/?utm_source=dot_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
260 stars 148 forks source link

Language switch redirects to wrong URL #179

Closed cacsfre closed 2 years ago

cacsfre commented 2 years ago

Hi ! I noticed the following issue which can be replicated using the exampleSite folder. When clicking on the top right corner language menu, you will always get redirected to the same wrong URL which is not related to the currently viewed page as seen below.

dot-issue-fr-en

Example : from /fr/installation/install/, I'd expect to be redirected to /installation/install/. Instead, I keep getting redirected to /billing-pricing/manage/ regardless of the original URL.

Is this a bug ? Thanks !

tfsomrat commented 2 years ago

Hey @cacsfre

Thanks for your concern, It was happening because of caching issue, I fixed it in the latest commit. Please check it out. Thanks