The Dopefly Tech Blog

« The Dopefly Tech Blog Main page

Break Safari with cflocation

posted under category: ColdFusion on June 7, 2005 at 1:00 am by Nathan

Quick tip, something i just stumbled upon.

<cflocation url="?action=abc">

This will break Safari, adding the URL field to the current address. So, if you are looking at:

dopefly.com/?action=123

and run across the above cflocation tag, you will now have something like:

dopefly.com/?action=123?action=abc

Not exactly the desired effect! The fix, of course, is to be a little more specific.

<cflocation url="/?action=abc">