-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
4.1.4
-
None
-
MOODLE_401_STABLE
Hello, good morning, I have discovered a behavior that may be wrong.
I have a course that includes several URL type activities, this one in particular has to work with a complex URL of the type https://XXX.YYY.ZZ/DDD/Publica/look[pub]ShowInfo?entradaPublica=true&idiomaPais=es.ES&_anoA=2023&_cod=29004
It is a get-type URL, but it does the translation indicated below. When the corresponding teacher user builds or edits the activity, this url is typed in the box called "External URL", the activity is completed and saved without any problem.
When viewing the course, you enter that activity and click on the corresponding link, the browser does not display the required information. When checking the url that came from Moodle, I find that it has changed all the & to & resulting in a non-existent url on the site where it points. This same behavior is repeated when tested with the administrator user. As part of the tests I have done, I find that if I put a text in the description of the activity and within said text, I include a link with the original address, it works without any problem and takes me to the page that has the complex url.
Other person, Mr. Castro Fernández, has verified this issue and the URLs are broken in some Moodle 4.1 installations and in others they are not.
My Moodle version is 4.1.4+ (Build: 20230714) and the PHP version is 7.4.30
- duplicates
-
MDL-78895 URL activity links contain double encoded &, loss of display specific attributes
-
- Closed
-