Background of the issue:
I have set up a website with two languages using different domains: German as the main language on schadstoffanalyse.ch and French as the secondary language on analyse-des-polluants.ch. I want to find out why hidden link is redirecting to schadstoffanalyse.ch. I have tested the request reaches WordPress before the redirect happens, and there is a header x-redirected-by: wordpress. I have run the website in safe mode with only core+wpml enabled and the redirection is still happening. Link to a page where the issue can be seen: hidden link
Symptoms:
When I access hidden link, it is being redirected to hidden link instead of hidden link.
Questions:
Why is hidden link redirecting to schadstoffanalyse.ch?
How can I stop the redirection from hidden link to schadstoffanalyse.ch?