geonetwork/core-geonetwork

Multiple URLs in text join up to create invalid links

duncanw opened this issue · 0 comments

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:

  1. Go to Contribute > Add new record
  2. Select the template and group then click Create
  3. 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
  4. Fill in all the mandatory fields
  5. Save and view the new record
  6. 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.

Screenshots
image
image
image

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