h5p-interactive-video icon indicating copy to clipboard operation
h5p-interactive-video copied to clipboard

Ampersand in the URL break link when using with image

Open sokunthearithmakara opened this issue 1 year ago • 3 comments

Steps to replicate:

  1. Add an image to the video
  2. Link the image to an external URL which contains & in the URL address
  3. Publish the interactive video
  4. Click the image

sokunthearithmakara avatar Dec 22 '23 14:12 sokunthearithmakara

There's a pull request that would fix this issue at https://github.com/h5p/h5p-link/pull/19

otacke avatar Dec 22 '23 15:12 otacke

Oh wow. That was submitted three years ago and still has not been merged. Anyway, I was wondering why this issue only happens with the image while Navigation Hotspot and URL elements are working fine.

sokunthearithmakara avatar Dec 22 '23 15:12 sokunthearithmakara

I created a ticket at https://h5ptechnology.atlassian.net/browse/HFP-3848 to draw the product owner's attention to this.

It's only happening here, because the "Navigation Hotspot" subcontent type is using a different approach for the URL generation than the plain "Go To" mechanism built into Interactive Video.

otacke avatar Dec 22 '23 15:12 otacke