appmapping and leading slash

Hi,

Im developing a site locally, it runs in a subdir of wwwroot (lets say
in subdir SOMESITE). So appMapping is SOMESITE.

At the company im developing it for it runs in the root, so appMapping
is an empty string.

The problem is, when i include css and javascript i refer to it as:

href="/#getSetting('appMapping')#/whatever.css"

But when the appMapping is empty string. It turns into:

href="//whatever.css"

Which their server cant handle (IIS).

So i need some other setting (like appRoot or something?), which has a
leading slash if its not an empty string.

How do you guys solve this? Im having the feeling im overlooking
something really obvious.

greets,
klaas

Have you thought about using:

or

wiki.coldbox.org/wiki/URLMappings.cfm#How_about_the_BASE_tag

– sent by a little green robot

Also, might want to use maybe some tier settings for this, and not use appMapping, but a custom settings.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com