[Resolved] Redirect on the not correct URL after clicking on the flag
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're noticing that URL parameters like
?level=1
are missing when switching to a different language version of a page, this could lead to incorrect page versions being displayed. Solution: We recommend configuring the 'Preserve URL Arguments When Switching Languages' option in WPML → Languages. You should only add the parameter name (for example, 'level') without the question mark or the value. If you need to preserve multiple parameters, separate them with a comma. For detailed instructions, please see our guide on how to preserve URL arguments when switching languages.
I have several pages with '?level=1' or with '?level=6' in the end of the URL
example: hidden link
when I go to the german version I get this: hidden link
With out '?level=1' in the end of the URL
So it is wrong page
Have you tried that "Preserve URL Arguments When Switching Languages" in WPML → Languages? Because I just checked your site randomly and don't see it working for the pages links in menu.
May I ask for admin access to your website to check the issue in detail? You can create a separate admin user for this purpose, which can be deleted afterwards.
Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend.
Remember to take full backup of your website and database before proceeding. However, a staging/test site is highly recommended, because I may need to try some changes/fixes on the site (including plugins & themes deactivation), which may cause conflicts with the live site otherwise.
Please confirm it in your next reply or let me know if you do not agree with the mentioned.
I've set your next reply as private to share this information safely.
IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.
I've corrected and tested on the frontend and it works just fine now. See this screen recording hidden link
Hope the issue has been fixed now.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.