Parentheses in a raw link added to a text edit field will break the automatic formatting of a hyperlink in AtoM view pages
|Google Code Legacy ID:||Tested version:||2.4, 2.5, 2.6|
First reported via the user forum, 2019-10-25: https://groups.google.com/d/msg/ica-atom-users/MhjE2xTmU1Y/-x60sxItAgAJ. Reproduced in the public demo site.
Our regex for automatically converting raw links in forms to hyperlinks in view pages will not currently recognize parentheses, and links that include them will not format correctly when added to a record, saved, and then seen on the view page of a description or other entity.
- Log into AtoM and find a description
- Enter edit mode
- In a free-text field, add a link such as the one in the attached image: https://libris.kb.se/hitlist?q=SIGNUM%3a(288+ko+1)%d=libris&m=10&p=1&s=r
The URL stops being formatted as a hyperlink at the parentheses
The entire URL works and is clickable as a hyperlink.
Note that manually percent-encoding the parentheses does seem to work, so that's a possible workaround.