You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If a multi-line text field (e.g the abstract) in a metadata record contains a URL that ends in 1,2,3 or 5 (e.g https://doi.org/10.21420/TTQ0-SR11), the digit(s) on the end of the URL are omitted when the record is viewed.
To Reproduce
Steps to reproduce the behavior:
Go to Contribute > Add new record
Select the template and group then click Create
In a multi-line text field, add some text containing such a URL, e.g "This is a link: https://doi.org/10.21420/TTQ0-SR11 [new line]...and it is borked"
My guess is this is caused by incorrect XML character encoding in this regex in core-geonetwork > web/src/main/webapp/xslt/common/utility-tpl.xsl: <xsl:analyze-string select="$string" regex="(http|https|ftp)://[^\s()><]+[^\s``!()\[\]&#123;&#125;;:''".,><?«»“”‘’]">
Describe the bug
If a multi-line text field (e.g the abstract) in a metadata record contains a URL that ends in 1,2,3 or 5 (e.g https://doi.org/10.21420/TTQ0-SR11), the digit(s) on the end of the URL are omitted when the record is viewed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The full, correct link should be rendered and clickable in the record view.
Screenshots
In the edit page:
In the view page:
Inspecting the view page link:
Log file
N/A
Desktop (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: