I don’t know what you mean by development. This setting/interceptor has nothing to do with development and everything to do with the base URL used to build all links.
If you want the base URL of your app to be the same regardless of how it was reinitted, take this code in your /config/routes.cfm:
// Base URL
if( len(getSetting(‘AppMapping’) ) lte 1){
setBaseURL(“http://#cgi.HTTP_HOST#/”);
}
else{
setBaseURL(“http://#cgi.HTTP_HOST#/#getSetting(‘AppMapping’)#/”);
}
and replace cgi.HTTP_HOST with the domain you want.
The behavior may be unexpected and even a little annoying, but it’s not a bug-- it’s just how the SES interceptor has always worked.
Here’s a link to the multi-domain interceptor (basically like what I pasted in) which is what you need to use if you want to use your site on multiple domains.
http://www.coldbox.org/forgebox/view/Multi-Domain-SES
I’m honestly not sure why this preProcess() methd isn’t just part of the SES interceptor with a setting to turn it on or off. Actually, I’d like to see the three optional settings added to SES:
determineBaseURL=‘auto’; // Detect each request (What I think the default should be)
determineBaseURL=‘reinit’; // use whatever the application is reinitted with (current default)
determineBaseURL=‘www.mydomain.com’; // override to always use
This would remove the need for the multi-domain SES since the regular SES interceptor could be configured to do whatever you wanted.
An Assembla ticket should probably be raised to see about this enhancement unless Luis can provide some background on why it is the way it is.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com