How to pass an Ampersand in a Redirect?

I have a link which carries a URL as a variable. When clicked, the link goes to another page where I do something behind the scenes with other info and then I redirect to the url variable specified (#trackingSite#). But the refresh with the url carried over in the link will not pass correctly? When looking at this, is there a simple solution I'm overlooking? Am I going about this wrong in the first place? Any advice would so appreciated.

Caveat: I know passing all of the information in an href in this manner is not ideal; I've inherited this and don't have a choice.
The link which is on page A:

 <a href="searchAdmin/act_recordTracking.cfm?trackingID=#trackingID#&trackingSiteID=#trackingSiteID#&trackingSite=#URLEncodedFormat(trackingSite)#" target="_blank" class="trackingListLink">#trackingSite#</a>

Page B (searchAdmin/act_recordTracking.cfm) takes the other information, does some stuff and then refreshes the page with the trackingSite URL. 

<!---redirect --->
<meta http-equiv="refresh" content="1; url=#trackingSite#">

Open in new window

traportAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

parikaaCommented:
Replace all ampersands with their html numeric entity.




<!---redirect --->




0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gdemariaCommented:
I wonder if you can URLencode it again?

<cfoutput>
<meta http-equiv="refresh" content="1; url=#URLencodedFormat(redirect_url)#">
</cfoutput>


(you do have CFOUTPUT around this statement already I assume? )
0
dwkdCommented:
can you post the code where you set trackingSite ?
why aren't you using cflocation?
0
traportAuthor Commented:
Thanks so much. I'm sorry it took me so long to get back to your solution. I used bits and pieces of both solutions.

I'm not using cflocation b/c it wouldn't process anything before the cflocation - I couldn't figure out how to "delay" a cflocation! Hope that makes sense.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.