Question
using cflocation with variable in url
I am trying to create a custom tag that gets the name of the
current template and then passes that name in a query string
appended to a url in a cflocation tag.
<cfset temp=GetFileFromPath(GetBaseTemplatePath())>
<cflocation url="index.cfm?ref=#temp#">
When this page redirects, it determines "temp" to be "index.cfm" instead of whatever file was when the script was called. It appears to not process "temp" until after the cflocation.
Is there any way to get this to work?
<cfset temp=GetFileFromPath(GetBaseTemplatePath())>
<cflocation url="index.cfm?ref=#temp#">
When this page redirects, it determines "temp" to be "index.cfm" instead of whatever file was when the script was called. It appears to not process "temp" until after the cflocation.
Is there any way to get this to work?
