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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - |
- | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | - |
Supporter timezone: Europe/Zagreb (GMT+01:00)
Tagged: Bug
This topic contains 4 replies, has 0 voices.
Last updated by Dražen 4 days, 9 hours ago.
Assisted by: Dražen.
Author | Posts |
---|---|
March 3, 2025 at 9:26 pm #16770926 | |
wernerT-3 |
Background of the issue: Symptoms: Questions: |
March 5, 2025 at 10:44 am #16777860 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, Thanks for contacting us. I just checked on the test site with the same settings/permalinks, and it works just fine with the latest WPML 4.7.1, so it could be something specific to your environment/website. Please create and share a staging site where we can check this issue further. I have enabled private reply. Thanks, |
March 5, 2025 at 10:47 am #16777882 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, you also say: "But the connected homepage for other languages like DE + FR can now only be reached like /de and /fr but not anymore under /de/ and /fr/ - those last to redirect to /de and /fr" But if I check your live website is see that /en redirect to /en/, so not sure what is expected behaviour for you on live / staging site. Regards, |
March 5, 2025 at 12:23 pm #16778414 | |
wernerT-3 |
Hi Drazen, Let me first reply to you last question: "so not sure what is expected behaviour" The expected behavior, which works up to at least 4.6.3 (and not anymore already in 4.6.8 - see previous ticket) - is that homepages can be reach under the URL with a slash at the end. Like /de/ and /fr/ - this does work for /en/ in the new version but only for the default language ( EN is default language ) and not for any language. On the Live site in our .htaccess file we redirect from /fr , /de , /en to respectively /fr/ , /de/ , /en/ ------------- In your first reply you state: "it works just fine" , but in your second reply you state "not sure what to expect". ------------ Since it is impossible to grand sftp access due to IP restrictions, I can only give you access to our staging environment and that iis already hard to do as this is a controlled environment connected to GitLab for deployments with separate .htaccess + wp-config.php deployments and connections - with specials connections NFS files for uploads and other shares. It would be much easier if we can setup a teams-call and I share my screen which you can takeover. ------------ A side-effect that I noticed is that the function "url_to_postid" neither works for these homepages: Failed to resolve URL: hidden link ------------- I did find a work-around for wpml redirecting /de/ ( or /fr/ ) back to /de or /fr This is my work-around: add_filter('redirect_canonical', 'check_wordpress_redirects', 99, 2); In local dev I use global.it.atos.net as the domain for atos.net (prod live site) When I would even invest time actually debug wpml code I might be able to pinpoint where your redirection doing this for /fr/ and /de/ but not for /en/ ... I hope this clarifies the issue more clearly and you will be able to replicate this behavior on you side. If not, if you can reach your language homepage with slash at the end, then there might be something wrong with the database content. since I never created a clean install. If you like to setup teams call that would be welcome as well. Just propose a date/time. Kind regards, |
March 5, 2025 at 12:50 pm #16778631 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello Michel, Thanks for the detailed reply; it is really helpful. I was able to reproduce the issue and confirm your findings. I have now escalated this issue to our 2nd tier to check and escalate it further. I will update you when I have some news, it may take a day or two. Regards, |