User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
The edit URL of the modal_weblink field (used e.g. for the associations of a weblink) contains
document.getElementById("jform_..._id").value
with raw double quotes. The bootstrap modal layout outputs the URL as data-url="…" without escaping, so the first " ends the attribute and the rest of the URL becomes invalid attributes of the modal element. The core modal fields used " here, which the modal script converts back before evaluating the expression.
Additionally, the select callback passed 'Article' as item type to processModalSelect() (copy & paste); it now passes 'Weblink'.
ModalEdit… element (browser dev tools).The edit modal opens the selected weblink, the data-url attribute contains the complete URL.
The data-url attribute is cut off at document.getElementById(, followed by junk attributes.
None