Background of the issue:
I am trying to replace the rules for generating links to the post page with code in functions.php on my site hidden link. I want the language prefix to be added to the new link when switching languages.
Symptoms:
When switching languages, it returns a 404 error because the language prefix is not added to the new link, so the link remains the same.
Questions:
How can I fix the issue of the language prefix not being added to the new link when switching languages?
The topic ‘[Closed] URL formation when switching languages’ is closed to new replies.