Inconsistent urls in multi-language structure
-
Hello,
I’m building a multilingual academy using MasterStudy (great plugin so far!), Polylang, and Elementor, and I’m facing an issue with inconsistent course URLs when Polylang is active.
I have two languages: EN and IT.My EN courses archive page slug is “courses-page” while the translated IT page has the slug “it/archivio-corsi”.
In the settings of MasterStudy I used the IT courses page with admin language set to IT and the EN page with language set to EN (it doesn’t seem to work honestly, if i switch to IT, the page is missing in the field).Issue
Course URLs become inconsistent across the site:
Single course URL: courses/course-en-01/ (works, but uses an unexpected /courses/ base)
Course listing links in archives: courses-page/course-en-01/ (broken, but correct structure)
Enroll button links: courses-page/course-en-01/20 (working correctly)When Polylang is deactivated, everything correctly uses:
courses-page/course-en-01/Main concern
The /courses/ base slug appears to be a default or fallback value, as it is not declared anywhere in my setup and I am not intentionally using it. It only appears when Polylang is active and overrides the expected structure causing broken links.Expected behavior
All course-related URLs should consistently use:
For EN: courses-page/course-en-01/
For IT: it/archivio-corsi/corso-it-01/Question
Is this /courses/ slug a default MasterStudy or Polylang rewrite rule, and is there a way to prevent it so that all course URLs consistently follow the custom archive slug?Thank you so much! I’m considering buying the Pro version but I really need to understand where this issue comes from now 🙂
You must be logged in to reply to this topic.