Multiple URLs in text join up to create invalid links
duncanw opened this issue · 0 comments
duncanw commented
Describe the bug
If a record text field contains more than one URL, the URLs and the text between are joined together to form one long broken link.
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 two URLs, e.g "This is a link: https://gns.cri.nz and so is this: https://google.com
- Fill in all the mandatory fields
- Save and view the new record
- The multi-line text field has a single link with href="https://gns.cri.nz and so is this: https://google.com"
Expected behavior
The multi-line text should have one link per URL in the text.
Log file
N/A
Desktop (please complete the following information):
- Browser: Microsoft Edge for Business Version 125.0.2535.92 (Official build) (64-bit)
- GeoNetwork Version: 4.4.2.0
- Server Application: docker container: jdk-11.0.22+7 and Jetty 9.4.54.v20240208
Additional context
N/A