When creating a new page in Orchard and adding an image through the media/image picker, the html tag <img src="/Media/Default/Page/something.png" /> is added.
However, when deploying or moving the Orchard site to a new/other virtual directory, the image path breaks. E.g., from http://www.mysite.com to http://www.mysite.com/Archive
I can solve this by removing the first "/" in the img src attribute; this will display the image because of the relative path. Unfortunately, the image breaks in the Edit Page (admin dashboard).
What is the recommended / best practice to handle this issue? How should I construct the src attribute such that (1) the site can be moved to a new/renamed virtual directory without breaking the images and (2) the image does not break in the admin dashboard?
Thanks for the suggestions,
Robbie De Sutter