Questions tagged [cflocation]

cflocation is CFML tag, which stops execution of the current page and opens a ColdFusion page or HTML file.

cflocation is CFML tag, which stops execution of the current page and opens a ColdFusion page or HTML file.

20 questions
8
votes
3 answers

cflocation vs cfheader for 301 redirects

I am "renaming" an existing file for a project I am working on. To maintain backwards compatibility, I am leaving a cfm file in place to redirect the users to the new one. buy.cfm: old shop.cfm: new In order to keep everything as clean as…
Joe C
  • 3,506
  • 2
  • 21
  • 32
6
votes
4 answers

Redirect to UTF-8 URL with ColdFusion

I'm working on a system that uses UTF-8 characters in folder names for URLs. There's been no problem in navigating to these URLs and everything works as expected - except when issuing a redirect to another page on the site; whereupon the browser…
Gary Stanton
  • 1,435
  • 12
  • 28
6
votes
5 answers

Why isn't the default for cflocation addtoken equal to no?

Is there any good reason why the default for this tag would be yes? It seems to be that it should almost always be no. I am missing something?
Jason
  • 17,276
  • 23
  • 73
  • 114
3
votes
1 answer

Strange cflocation behavior: redirecting to page but not updating url

I have a basic mobile login page in ColdFusion that allows the user to enter a username and password and log in. On successful login, the page redirects to the home page using a cflocation. However, while the page redirects successfully to the home…
froadie
  • 79,995
  • 75
  • 166
  • 235
3
votes
4 answers

cflocation no longer working in CF10

I’ve been battling with a bug with cflocation ever since I upgraded from CF9 to CF10. I’ve worked on it a number of times but always give up but today it’s finally annoyed me enough that it’s time to solve the problem (I hope). Firstly, apologies…
tHeSmUrF
  • 169
  • 1
  • 3
  • 10
3
votes
1 answer

Is the use of CFLOCATION good/bad practice for "next step" operations?

I often design step-by-step processes (i.e. Shopping Cart) in the following way: Form posts to itself On post, validate entries. If NOT valid, display the form with error messages. If valid, save the entries (to SESSION or database, etc.), then…
Eric Belair
  • 10,574
  • 13
  • 75
  • 116
3
votes
3 answers

Redirect to a new tab using CFLocation - CF9

Is there a way to redirect a user to a new window by using CFLocation? As far as I know you cannot use target=_blank in CFLocation. Is there another way to do it? This is my code:
Geo
  • 3,160
  • 6
  • 41
  • 82
2
votes
0 answers

How do you send http_referrer data when cflocation removes it

I have a website that logs clickthroughs to client sites. It's how I track meaningful activity on ColdFusion. The problem is the after I write to the database, I use CFLocation. It sends a blank http_referrer. This means that the receiving…
user3101112
  • 31
  • 1
  • 3
1
vote
1 answer

ColdFusion - Form variables empty after form submit

My question references the following question/answer provided in this stackoverflow post: Form Variables are not showing up after form submit. ColdFusion I wanted to comment in the above referenced post, but I don't have enough reputation points. I…
S. Costello
  • 35
  • 1
  • 10
1
vote
1 answer

How do I CFLOCATE to page, not division?

I currently have a ColdFusion page that has a list division on the left side and a details division on the right. When a record is added through a button-click on the details side, I want to rebuild the whole page so the new record will be displayed…
Ross from Brooklin
  • 293
  • 1
  • 5
  • 18
1
vote
1 answer

Coldfusion cflocation strange behavior

I am storing a google review URL in my database…
Brian Fleishman
  • 1,237
  • 3
  • 21
  • 43
1
vote
0 answers

Is is possible to catch or prevent a CFLOCATION request

We are doing maintenance on a huge legacy system that was written over 10 years ago. It is all written procedurally with no concept of OOP. There are lots of includes and redirects all over the code. The problem is that it is extremely difficult…
Lance
  • 3,193
  • 2
  • 32
  • 49
1
vote
3 answers

Coldfusion Server Side Form Validation – how to display data entered in one form into another form

I have two forms. In form1 both name and address must be entered. If one of these entries are missing, an error message is displayed after doing server side validation. If no errors, the results entered in form1 should be displayed in form2. I…
1
vote
1 answer

How do I work around the change in inside a CFC?

This post addresses the problem I'm having. Coldfusion 8 doing both CFIf and the CFElse statement? My cfselect has a bind to a CFC to build its array dynamically. Ok, now I want to add an array item "--New Record--" and when that is selected, jump…
0
votes
1 answer

Does cflocation call onRequest?

I'm getting an error "transaction_types" is undefined, and having trouble understanding why. I have application.cfc:
Patrick Schomburg
  • 2,494
  • 1
  • 18
  • 46
1
2