The Toolkit for Online Communities
17717 Community Members, 2 members online, 2087 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Development : Getting a Return Path : One Message

Forum OpenACS Development: Re: Getting a Return Path

2: Re: Getting a Return Path (response to 1)
Posted by Don Baccus on
When you "call" the page it will be the target of a new HTTP request.  grep around for uses of "return_url" to see how this situation is normally handled.

set return_url [ad_conn url]?[ad_conn query]

will get you a url that references the current page.  Pass it using export_vars if you're generating a hypertext link or in the -export clause to ad_form if you're building a form that needs to include the return address.

3: Re: Getting a Return Path (response to 2)
Posted by Steve Manning on
Thanks Don

Setting return_url is what I'd come up with. Hadn't thought of grepping the the source for it but doing so seems to confirm this.

Nice to know I wasn't missing anything.