Forum Moderators: phranque

Message Too Old, No Replies

ColdFusion Question

         

kevinj

3:17 pm on Jul 9, 2004 (gmt 0)

10+ Year Member



I'm setting up a simple CF search on my site that will display the page title and the link to the page on the results page. Is there a way to grab the complete url for the link?

Link: <a href="#URL">#URL#</a> only gives me the page's url and not the directory with it.

Any ideas?

Thanks,
Kevin

thorlabs

3:28 pm on Aug 18, 2004 (gmt 0)

10+ Year Member



Try this.

absolute
<CFOUTPUT>#cgi.SERVER_NAME##cgi.SCRIPT_NAME#</CFOUTPUT>

relative
<CFOUTPUT#cgi.SCRIPT_NAME#</CFOUTPUT>