In multiple places I have added a Generic Content control and in the html editor have added relative paths. I can save and publish it and everything looks and works correctly. If I go back into it to edit, instead of showing the relative path, it has an absolute path and an sfref with the relative path. If I save it a second time the relative paths stop working.
Original: <a runat="server" href="~/default.aspx"><img runat="server" src="~/images/image.jpg" alt="image" /></a>
After being saved: <a sfref="~/default.aspx" runat="server" href="/Website/default.aspx"><img sfref="~/images/image.jpg" runat="server" href="/Website/images/image.jpg" alt="image" /></a>
The workaround I have found is that everytime I edit the Generic Content I have to change all the "/Website" back to "~". For some pages this is very lengthy and problematic.
This is also a problem with News modules.
Is there a way to use relative paths but not have the editor change them?