My website has 3 languages. The default language is en.
Now I need to create a link to a blog page of the same language as the current page lanugage.
To link to that page I determine the current page lanugage and use it in the HTML link:
<a href="{{ $.Language.Lang | absURL }}/blog/markdown_tutorial">Markdown</a>
This works fine for the other 2 languages creating correct links. But when the current page language is en, it creates links that don’t work, e.g.:
http://localhost:1313/en/blog/markdown_tutorial
because configuration of my site does not use the language designation in the links.
To work, this link should have no language designation, like:
http://localhost:1313/blog/markdown_tutorial
How to remove the language designation from the link when the language is default?