This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue with the BetterDocs plugin on a multilingual site using WPML. When attempting to switch languages on a specific page, the redirection fails, stopping at an intermediate page instead of reaching the correct translated page. This issue is observed with incorrect URLs being generated for language switches.
Solution: We recommend modifying the BetterDocs plugin code to ensure correct URL generation when switching languages. Here are the steps: 1. Open the file
This modification should correct the URL generation issue. If this solution does not resolve your problem, or if it seems outdated or irrelevant to your case, please visit our support forum to open a new ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.
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.
The plugin author provided us with a pro license to test the issue. I tried to replicate the issue, so please check the sandbox site and let me know if that is the same issue you face.
The knowledgebase slug is not translated correctly when switching the language. Kindly check the following pages and try to switch the language.
1) hidden link
2) hidden link
You will notice that the [kb1-es] is not changed to [kb1]. The same happens when switching from English to Spanish.
Hello)
Do not quite understand...
I recorded a video for you, which in my opinion can be a step towards solving the original problem.
I don't understand how I can match a similar problem or not...on your site (maybe yes..similar).
Perhaps the links (in my video, when I go to another level) are somewhere else formed ... and they need to be changed?
P.S.
this link: hidden link
gives the following error: hidden link
1. Here is a video everything where you can see that we did as you asked hidden link
Did not help.
2. as you see in the video... a similar problem as on your sandbox site when clicking on the buttons (with a link)
When changing the language, we are simply thrown to a higher level, and not left on the same page simply with a change in language.
And we still created a test site.
Here you can test everything you need.
I'll send you a private message.
Give me that opportunity.
Although I don't understand...about the sandbox...
I can give you access to the test site we set up.
You will have the opportunity to completely create and test everything yourself without any problems, as our knowledge may not be enough.
Kindly let me know the result of applying the workaround on your staging site. If it doesn't fix the issue, I'll enable the private reply, so you can share the access details safely.
Osama, hi. You are a genius.
Thank you very much for solving such an important and long-standing problem.
Here is a video where everything works: hidden link (5 days available). Look at the ending of Guide and Guides, why is it one moment one thing and another another moment another?
Can we return everything as it was before the implementation of these recommendations of yours? Or if we return that switching of language will not work?
1) Thanks for your update. It's great to hear that everything is working correctly. The guide and guides slugs are different because the guide page's slug is "guides" while the knowledgebase slug is "guide".
2) Please take a backup and return the things as you wish and test if they will work correctly.