cf_location2
ColdFusionEver want to do a Permanent (301) redirect instead of the default of 302 with a cflocation?
Ever want to see what happens before the redirect *without* needing to hunt through the code and add in temporary cfaborts?
I've been using a similar CustomTag by Bert Dawson for years, but have been wanting to make it more generic and portable to any CFMX version.
First, here's the first stab at cf_location2:
Second, here's an example of how to test it (should work the same whether you're using Session or Client variables):
Suggested use:
In development, to use the cflocationDebug, add a global variable such as application.cflocationDebug that you set to true. In QA you'd usually want it set to false (unless you can't track down a bug any other way), and always have it set to false in Production.
Useful? Thoughts?




Loading....