Keep the img.src in sync between dev and live sites

Topics: Administration, Customizing Orchard, General
Jul 8, 2014 at 1:15 AM
Edited Jul 8, 2014 at 6:41 AM
The problem is, when we upload an image from the live site, the img.src looks like src="/Media/Default/Some_Folder/some_image.jpg", whereas when we upload it from dev site, it looks like src="/Orchard.Web/Media/Default/Some_Folder/some_image.jpg", where Orchard.Web is the virtual directory.

How can we keep the image paths in sync? Currently, we must add/remove the virtual directory to/from all the paths.

  1. Is this by design or a bug?
  2. If it is by design, what is the motivation, and is there a workaround?
  3. If it is a bug, then can I sign up to fix it?
Jul 8, 2014 at 6:40 AM
Edited Jul 8, 2014 at 6:41 AM
Solved - Don't use a virtual directory. Remove it from the projects properties in VS or set up in full IIS as a Website (not Virtual Directory).