5 Replies Latest reply on Sep 3, 2008 4:12 PM by Newsgroup_User

    using cflocation with variable in url

    keuste Level 1
      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?