The Dopefly Tech Blog

« The Dopefly Tech Blog Main page

Break Safari with cflocation

posted under category: ColdFusion on June 7, 2005 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">

Nathan is a software developer at The Boeing Company in Charleston, SC. He is essentially a big programming nerd. Really, you could say that makes him a nerd among nerds. Aside from making software for the web, he plays with tech toys and likes to think about programming's big picture while speaking at conferences and generally impressing people with massive nerdiness and straight-faced sarcastic humor. Nathan got his programming start writing batch files in DOS. It should go without saying, but these thought and opinions have nothing to do with Boeing in any way.
This blog is also available as an RSS 2.0 feed. Click your heels together and click here to contact Nathan.