Did you try URLENCODING() the url that you're passing along the URL?

|-----Original Message-----
|From: Terra Durrant [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, March 13, 2001 2:06 PM
|To: CF-Talk
|Subject: Linking to URLs with Ampersands
|
|
|Hello,
|
|For our Web site, I use a ColdFusion redirect page to display a legal
|disclaimer when linking to external sites.  To have this redirect text
|appear in the template before the user leaves our site, I must use the
|following format for a link tag:
|
|<A
|HREF="#Session.TemplatePath#&Template=Redirect.cfm&Location=htt
|p://www.leg.s
|tate.co.us/2001/inetcbill.nsf/fsbillcont/F0ACA8F6AE0D6AE7872569
|BC005A272F?Op
|en&file=001_rn2.pdf" TARGET="_blank">
|
|Since ColdFusion uses the ampersand to define variables, I am 
|running into
|trouble linking to Web sites that use ampersands in their 
|URLs.  Because of
|the two variables previously defined in this tag, any of the 
|URL after (and
|including) an ampersand is deleted.  So, the above URL would 
|be truncated
|to:
|
|http://www.leg.state.co.us/2001/inetcbill.nsf/fsbillcont/F0ACA8
|F6AE0D6AE7872
|569BC005A272F?Open
|
|Thus, rendering my link useless.  I have tried using CFOUTPUT 
|tags, using
|two ampersands, and using the HTML code for an ampersand to replace the
|ampersand in the URL.  None of these options have worked.  Since the
|redirect page isn't something I can just *not* use, I am 
|wondering if any of
|you have found an alternative way to deal with this issue.
|
|Thanks in advance!
|
|Terra Durrant
|On-Line Specialist
|American Collectors Association
|(952) 928-8000, ext. 755
|www.collector.com
|
|
|Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
|Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
|

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to