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 MrNate

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">

Too old to comment!
On Jun 8, 2005 at 1:00 AM frax (nospam@example.com who would have preferred an address at oxel.net) said:
Any difference if base href is defined?

On Jun 8, 2005 at 1:00 AM Nathan Strutz (http://www.dopefly.com) said:
Base href, like the html tag? No difference because cflocation is issuing an http redirect, it's not like a regular link.
Too old to comment!