IE 6 named anchor and CFlocation error and workaround
A co-worker (Matt) and I stumbled on to this issue for a second time this AM while the boss was giving a demo for the client of a new feature added to the client's site. I am fairly sure that I remember seeing this before and had almost entirely forgotten about it. I figureit is time to blog about and share what we found and maybe I can remember it next time.
We have a page the does some stuff then cflocates off to another page with a url.ID var and a named anchor. This page would always throw an error when you use IE, but if you simply hit reload on IE the error would go away. The error would be a result of the url.ID var and the named anchor getting mashed together during the CFloaction.
This issue seems to only show up when IE 6, cflocation, named anchors and a query string value are used together.
<cfif not isdefined('url.id')>
<cflocation URL="#GetFileFromPath(cgi.script_name)#?id=1234##top" addtoken="false">
<cfelse>
<cfdump var="#url#">
</cfif>
So far, the only workaround I have found is to use a & (amper sign) just before the named anchor.
<cflocation URL="#GetFileFromPath(cgi.script_name)#?id=1234&##top" addtoken="false">
After I started looking into this problem I see Ray Camden wrote about the issue about a year ago.
http://ray.camdenfamily.com/index.cfm/2005/10/8/IIS6-Bug-with-CFLOCATION

http://needfornews.com/top_search.php
http://vidslib.com/
Thousands of hot movies that you dare to watch. Movies are playable on various devices including iPod, PDA (HandHelds), PC, DVD & DivX players. Lowest prices on the web ever. Start downloading movies from $1.99 only! Absolutely no limits. You can download as much as you want with incredibly high speeds. No additional software required. Click on a link, download a movie and watch it on your favourite player.
http://qualitydrugstore.biz/product_silagra.htm
http://qualitydrugstore.biz/product_florinef.htm
http://qualitydrugstore.biz/product_actos.htm
http://qualitydrugstore.biz/product_deltasone.htm
http://qualitydrugstore.biz/product_singulair.htm
http://qualitydrugstore.biz/product_tenormin.htm
http://forum.spotstop.com/member.php?u=3785
http://forum.spotstop.com/member.php?u=3776
interesting site
http://infomediaguide.com
http://www.propeller.com/member/effex/
http://www.propeller.com/member/lexa1/
http://www.propeller.com/member/zyppa/
http://www.propeller.com/member/pamely/
http://www.propeller.com/member/paxa/
http://www.propeller.com/member/amoxo/
http://www.propeller.com/member/cipraa/
http://www.propeller.com/member/hoodgord/
http://www.propeller.com/member/deltaa/