Is there any way I can move the SetBaseURL from the Routes.cfm file to
the ssl.cfc interceptor? Or, is there any problem with setting the
Base URL to a relative URL without the http_host in it?
I don't want to have to worry about telling buildLink whether it's SSL
or not, I don't want to have to SetBaseURL in one or more handlers,
and I don't want to have to check for event.isSSL.
What I really want is if the handler name is in the regex pattern for
the SSL interceptor, to be relocated to https and for all links on a
page to automatically be https as well ... until the user clicks on a
link that is not in the regex pattern for the SSL pattern... then,
they are redirected back to http.
You still have to set the base URL in the ses interceptor configuration file: Routes.cfm. This is the default SES URL the system will use. You can then override it a-la-carte using the event.setBaseURL() in the SSL interceptor.