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:

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

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 has underestimated said:
Any difference if base href is defined?

On Jun 8, 2005 at 1:00 AM Nathan Strutz ( 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!