Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing an issue where clicking on the Japanese language link in the footer redirected to an incorrect URL, showing the homepage instead of the Japanese translation of the page.
Solution:
We suggested that the client should check for any redirect rules that might be causing the issue. The steps included:
1. Go to "Tools > Redirection" in the WordPress dashboard.
2. Look for any rules that might redirect the Japanese version of a page to a different URL and remove them.
3. Clear the site caches, Server/Hosting Panel caches, and browser caches.
4. If the site is hosted on Pantheon, check the Pantheon Hosting Dashboard for any direct redirection configurations and remove them if present.
The client resolved the issue by identifying that the 'LH HSTS' plugin was causing the redirects and removed it from their stack.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If you're still facing issues, we recommend opening a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is required, please contact our support team.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Prosenjit Barman 11 months, 4 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
February 10, 2024 at 9:52 am #15288211

christopherA-19

Tell us what you are trying to do?

I'm clicking on the Japanese language link in the footer of this page: hidden link

It tries to take me to this page: hidden link

But that ends up redirecting here: hidden link

And this shows the homepage, which is not what we want.

Any idea how to fix this so that I can see the Japanese translation of the page?

February 11, 2024 at 4:40 pm #15290309

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having. Upon examining the issue using the Browser's Developer Tools, it appears that the Redirection header has been removed from the Response header, making it challenging to pinpoint the exact cause of the redirection.

Given that you're using the "Redirection" plugin on your site, I recommend navigating to "Tools > Redirection" within your WordPress dashboard and reviewing any existing redirect rules. If you find any rules that redirect the Japanese version of a page to a different URL, please remove those rules. Following that, it's essential to clear the caches from your site, your Server/Hosting Panel, and your browser and check again.

Additionally, since your site is hosted on Pantheon, if any redirections have been configured directly within the Pantheon Hosting Dashboard, please remove those as well and then check again.

If you notice an improvement or if further assistance is required, please don't hesitate to reach out. I'm here to assist.

Best Regards,
Prosenjit

February 12, 2024 at 6:03 am #15291042

christopherA-19

Thanks for the help. It turns out it was this plugin we were running that was causing the strange redirects: https://wordpress.org/plugins/lh-hsts/
I've been able to remove it from our stack and now things are operating correctly. Thanks again.