Forum OpenACS Development: Re: Referer url

Collapse
4: Re: Referer url (response to 1)
Posted by Dave Bauer on
What exactly are you trying to accomplish by retrieving the referer?

Perhaps if you can show a sample of the tcl code from the referring page we can suggest a solution.

Collapse
5: Re: Referer url (response to 4)
Posted by josue ruiz on
ok
I'm doing this

if {![regexp "$return_url.*" "$referer"]} {
ad_returnredirect $return_url
}

if the referer is the same of the return_url I show the html that i want, but if aren't the same I redirect using the return_url

all works fine only when i access a page without an adp page, becasuse the referer isn't the correct(how I wrote in the first post), and doesn't make the if well.