Old Code:
<cfcomponent>
<cffunction name="setReturnPage">
<!--- This function sets the session variable returnPage to the current URL address --->
<cfif cgi.QUERY_STRING IS NOT "">
<cfset session.returnPage = "#cgi.PATH_INFO#" & "?" & "#cgi.QUERY_STRING#" >
<cfelse>
<cfset session.returnPage = "#cgi.PATH_INFO#">
</cfif>
</cffunction>
</cfcomponent>
Updated Code:
<cfcomponent>
<cffunction name="setReturnPage">
<!--- This function sets the session variable returnPage to the current URL address --->
<cfif cgi.QUERY_STRING IS NOT "">
<cfset session.returnPage = "#GetFileFromPath(cgi.CF_TEMPLATE_PATH)#" & "?" & "#cgi.QUERY_STRING#" >
<cfelse>
<cfset session.returnPage = "#GetFileFromPath(CF_TEMPLATE_PATH)#">
</cfif>
</cffunction>
</cfcomponent>
No comments:
Post a Comment