SES assets relative path

What’s the recommended strategy to make sure all assets paths work under SES routing?

For example, if I have a common layout with the following stylesheet:

…it’ll only work for:

but not:

Is the only solution to use absolute path? If so Is there a built in variable or function that would help with this?

Check out the code in the /layouts/Main.cfm from one of our app skeletons:

coldbox create app

And you’ll see the answer:

Cool thanks.