-
Notifications
You must be signed in to change notification settings - Fork 23
Description
bug
Using HyperlinkField.Href will give the wrong URL when the link field is a media item that has been added using 'Insert Link' (rather than 'Insert Media Link').
If I add using 'Insert Media Link', the raw value of the field is "<link linktype=\"media\" id=\"{E06C8962-B4D8-45E3-86D2-46B5D6FB60ED}\" />" - the linktype is "media" and the Href is "/-/media/song.mp3", which is fine.
If I add using 'Insert Link', the raw value of the field is "<link linktype=\"internal\" id=\"{E06C8962-B4D8-45E3-86D2-46B5D6FB60ED}\" />" - the linktype is "internal".
The Href is "/sitecore/media-library/song", so this is not valid (505).
However, the RenderedValue is correct and is "<a href=\"/-/media/song.mp3\">song</a>"
The Href should also be "/-/media/song.mp3"
I'm using Sitecore 9.3 and Synthesis 9.1.6