apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
67 stars 72 forks source link

Language suffix is removed from remote page links on single language courses #1255

Closed ihalaij1 closed 12 months ago

ihalaij1 commented 1 year ago

Language suffix should only be stripped from remote page link URLs on multilingual courses.

This has been a problem on Traky/CS-A1143, because of how it is setup with two similar courses in one Git repository. The other course is single language, while the other one is multilingual. The single language course has links with the suffix _en, such as https://plus.cs.aalto.fi/a1143/2023/lisatehtavat/hylje_en/#sealsimulator. This link should not have the _en suffix removed from hylje_en by the RemotePage method _fix_relative_urls().