Just started noticing this recently, I don't think it was an issue before but can't see what would have changed to cause this. We have General Link field for one of our templates and when I click the Insert Media Link in it and find the media item I want to link to, it inserts the correct path but leaves out the initial
/~/media and so when that item is published, we get a 404 when clicking on that link.
If I manually add
/~/media at the beginning of that inserted path, however, the link resolves fine.
Can anyone give me a hint as to why either the
/~/media isn't being inserted when clicking on this button, or why the path without that prefix wouldn't be resolving (if indeed it should be able to)?
Just looked at my configs and the medialink prefix is set to "" and there's a customhandler:
<handler trigger="~media/" handler="sitecore_media.ashx">
As far as I can tell, this should all be working fine, but I still don't get this prefix added to paths when clicking the Insert Media Link button for the content item...