Forum OpenACS Development: Re: Referer url

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.