Not compatible with WPML ?lang= parameter
-
Hi there,
Great plug-in, we’re thinking about buying the pro version, but before that we notice an incompatibility issue with WPML, when using the ?lang= parameter instead of the /lang URl structure.
For example, course item url’s on a second language page are being generated as:
https://meaningfulcrafts.com/stm-courses/spring-feary/?lang=nl65012Which should be:
https://meaningfulcrafts.com/stm-courses/spring-feary/65012/?lang=nlI made a temporary fix for this in classes/course.php:305 to switch those values, which worked but after a few seconds suddenly the URL keeps being redirected back to the bad URL. I cannot find where that is coming from (also cleared cache, cleared opcache, cleared wpml cache, checked for Yoast redirects, flushed permalinks, etc.)
So if you visit https://meaningfulcrafts.com/stm-courses/spring-feary/65012/?lang=nl you will see it is being redirected to https://meaningfulcrafts.com/stm-courses/spring-feary/?lang=nl65012 – causing the user to return back to the course but also in the wrong language. In some situations I can see the correct page but that will last for 1 second max and then I get redirected to the wrong URL anyway.
I’d love to see a compatibility with the ?lang= parameter from WPML, as I suspect this issue might happen on more situations in the plug-in (which I have not found yet though).
The page I need help with: [log in to see the link]
- The topic ‘Not compatible with WPML ?lang= parameter’ is closed to new replies.