Link to home
Start Free TrialLog in
Avatar of xamian
xamian

asked on

Safari and CFLOCATION

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?
Avatar of Andrew Maurer
Andrew Maurer
Flag of United States of America image

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?
Avatar of SidFishes
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.
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
do you cfflush somewhere
Avatar of xamian
xamian

ASKER

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="http://www.site.com/somepage.cfm?Trg=3&submission_id=#

Avatar of xamian

ASKER

Yea I usually leave out the page name. Is that a problem?
ASKER CERTIFIED SOLUTION
Avatar of SidFishes
SidFishes
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xamian

ASKER

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.