I'm having a problem setting an application variable to specify the path to my home page. It seemed simple enough but I keep getting a application variable not defined error. My home page is index.cfm and on every other subsequent page I have a link back to the index page. I set the path to the index.cfm in my application.cfc's on application start function like so:
<cfset application.homePage = "\races\index.cfm" />
And on all the pages I have the following:
But I get application.homePage is undefined error. How do I set this so that I don't have to hardcode the path on three different environments - dev, stage and production?