Topic: MCImageManager preview.urlprefix rewriting path to relative
We just installed the MCImageManager plugin and I'm trying to get the image src path to be set relative to the root of the website. So, I want to have:
/images/tests/myTest/stop.gif
The problem I'm finding is that when I set the preview.urlprefix to just "/" it's re-writing that in the background to "../../" instead. That's an issue because while we upload the images using one system, we actually want to use xcopy to move the directory elsewhere to display the end result. If we keep the "../../images/tests/myTest/stop.gif" rather than "/images/tests/myTest/stop.gif", it won't work on the remote system.
This is what I have in the web.config for the preview info:
<!-- Preview options -->
<add key="preview" value="true" />
<add key="preview.wwwroot" value="" />
<!--<add key="preview.urlprefix" value="{proto}://{host}:{port}/" />-->
<add key="preview.urlprefix" value="/" />
<add key="preview.urlsuffix" value="" />
<add key="preview.allow_export" value="urlprefix,urlsuffix" />
<add key="preview.allow_override" value="*" />
It does the same thing if I use add the {port} into the mix for some reason. What I'm really looking for is a way to turn that "../../" rewriting off and force it to use the initial slash for the server root no matter what.
Thanks very much for any assistance anyone can give!
Last edited by bspradlin2 (2012-04-11 23:10:28)