We have a few widgets that allow our admins to include arbitrary HTML, or indeed, just use the out-of-the-box Unfiltered HTML widget.
However, when the content team reference an image or asset on the site the widget ends up re-writing all the URLs to be site-specific, e.g.
They'll write something like this (pls ignore the path.. I've made it up)...
<img src="/e14/assets/main/fixed.png">
But upon saving, it gets persisted as;
<img src="https://mydomain.com/e14/assets/main/fixed.png">
When they subsequently edit the widget, it has the full domain on all the URLs. This makes it a real pain to work with if they're then going to copy the HTML from the Staging environment, and paste it into Production.. they'll end up having to search & replace across any HTML they paste into the widget config.
I've tried using a Property Rule to re-write the HTML but it has no effect.
Is there any way to alter this behaviour?
Verint didn't save the code sample nicely
[edited by: Matt at 12:21 PM (GMT 0) on Mon, Jul 26 2021]