I have a typical coldfusion app with a bunch of CFCASE statement which I use to render different iterations of the page, execute specific functions etc..etc..  It works fine in IE and firefox.  But for some reason safari is rendering the following error message:

"Too many redirects occurred trying to open page. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page."

For some reason it has a problem with my CFLOCATIONs.  Anybody knows what the deal might be with this piece of garbage browser?
Who is Participating?
SidFishesConnect With a Mentor Commented:
never seen it done like that efore

might be with Safari ;)

according to docs proper usage is a full url including http:// you -can- get by with relative urls in some cases but it's never a sure thing...and probably has a lot to do with how browsers handle url

i'm guessing safari is -stricter-
Andrew MaurerCommented:
not sure... I really haven't done anything with Safari.. but what if you append a url variable at the end of your request? so maybe you can fool it to think that it isn't the same page.

just to confirm.. you are saying addToken="no" on your cflocation tags right?
almost always a code problem related to endless loop redirect (as the message says)

I test with Safari and have not seen this as an -issue- ...except when it's -my- error

probably due to some variable not being set which controls your cflocation and not cflocation/safari itself.
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Andrew MaurerCommented:
Interesting Sid... but Xamian said it works fine in IE and FF ?

But... how many cflocations are we talkin about? Is there a more efficient way to handle what you are doing?
could -be- an issue with safari (setting variables, cookies etc)...just doubt it's cflocation as I use it all the time with no issue
erikTsomikSystem Architect, CF programmer Commented:
do you cfflush somewhere
xamianAuthor Commented:
Maybe 20 cflocations, you know the typical stuff
if blah cflocation back to form with a few extra url variables kinda like this
<cflocation url="?Trg=3&submission_id=#Form.submission_id#&topic_id=#Form.topic_id#&original_submission_id=#Form.original_submission_id#&quote=#Form.quote#&er=1">
 It's only safari that has this problem.
<cflocation url="?Trg=3&submission_id=#

that's not your actual url call is it??

needs to be at least
<cflocation url="somepage.cfm?Trg=3&submission_id=#

if not

<cflocation url="

xamianAuthor Commented:
Yea I usually leave out the page name. Is that a problem?
xamianAuthor Commented:
Sid's right.  This happened to me before I remember now.  Safari is very unforgiving about URLs in CFLOCATION.  At the very least you need a file name, but probably should enter a full url.  Once I put the full url Safari stopped whining about too many redirects.  
Thanks for the help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.