Background of the issue:
I am trying to translate the Tutor LMS dashboard slugs into Swedish. The courses are showing correctly in Swedish, for example, /sv/kurser/nytt-kurstest/. On the course page, all language versions of courses are displayed by default. When the site language is set to English and I click on a Swedish course lesson, the URL becomes: link nascosto. Link to a page where the issue can be seen: link nascosto
Symptoms:
I expected the Swedish lesson page to open correctly with translated slugs and the language switcher to work properly to change between English ↔ Swedish lesson pages. Instead, I got a 404 Page Not Found error when trying to open Swedish lessons. On the lesson page, the language switcher does not work: If the page is opened in Swedish, it does not switch back to English. If the page is opened in English, it does not switch to Swedish.
Questions:
Why am I getting a 404 Page Not Found error when trying to open Swedish lessons?
Why is the language switcher not working properly between English and Swedish lesson pages?