|
|
Background of the issue:
I am trying to translate terms in a custom taxonomy with the same slug for different regions. We have these URLs: NL -> hidden link and BE -> hidden link. Because BE and NL are the same language, the slugs are the same. I can reproduce this in a basic install and can provide the basic installation where this issue also is. I can provide this basic installation with the error.
Symptoms:
The body class shows 'term-7491' for both URLs, which is incorrect. Term_id 7491 is for the BE term, but NL should have 65 as term_id in the body class. This issue extends across the website, affecting other codes. For example, the canonical tag in the source of the NL link shows the BE URL as the canonical tag. This happens when the 'Adjust ID's' feature is turned off.
Questions:
Why are the term IDs incorrect in the body class for different regions?
How can I ensure the correct canonical URL is displayed for each region?
|
|
Ton |
Example can be found here:
hidden link
hidden link
These both have ID 8 in the body class.
Also when logged in in the top bar, when clicking "Edit category", it always goes to the NL backend category.
This does not happen when you have different slugs:
hidden link
hidden link
All this happens when the 'Adjust ID's' feature is turned off.
I can provide the login for this dev environment.
|
|
|
Hello,
Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.
Sorry for the late response because of the holidays and the high support load. It is not normal here. Thank you for your kind understanding.
Please fill in the private details fields after a full site backup. We would like to access the admin area of your dev site (hidden link) for further checking. Refer to the following links for more details about our privacy information sharing policies.
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
hidden link
--
Thanks!
Bigul
|
|
|
Hello,
Thank you for the updates. I can reproduce the issue on hidden link.
Please allow me to make a copy of your dev site using the Duplicator plugin (https://wordpress.org/plugins/duplicator/) for debugging and escalating the ticket to our developers.
--
Thanks!
Bigul
|
|
|
Yeah that's ok, go make a copy. I will await your reply.
|
|
|
Hello,
Thank you for the updates and permission. I made a copy of the site, we will troubleshoot it further and get back to you soon. Please wait.
--
Thanks!
Bigu
|