[thelist] Finding the URL of the page in ColdFusion

Raymond Camden jedimaster at macromedia.com
Tue Apr 3 11:21:41 CDT 2001


Use CGI vars.

<CFOUTPUT>http://#CGI.HTTP_HOST##CGI.SCRIPT_NAME#</CFOUTPUT>

You can also do:

<CFOUTPUT>http://#CGI.HTTP_HOST##CGI.SCRIPT_NAME#?#CGI.QUERY_STRING#</CFOUTP
UT>

to be more precise. You should change http to https if your on a secure
server.

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : jedimaster at macromedia.com
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Faust at ThinkChurch.com
> Sent: Tuesday, April 03, 2001 11:29 AM
> To: thelist at lists.evolt.org
> Subject: [thelist] Finding the URL of the page in ColdFusion
>  How do you find the URL of the page currently being displayed by
> the browser?  I want to know so I can get rid of any links to the
> page the user is currently viewing.  For example:
>





More information about the thelist mailing list