How do I do URL redirection in OpenACS / AOLServer?

526 Views Asked by At

We have a page with a form in OpenACS, and we'd like to redirect users to an external site/URL containing a totally different page/form.

How is it best done (on either the OpenACS-side or AOLServer-side)?

3

There are 3 best solutions below

3
On BEST ANSWER

With OpenACS, here are some suggestions, starting with util_httppost:

http://openacs.org/forums/message-view?message_id=17963

I don't have privs to post more than one hyperlink, but inside this one there are links to other posts that discuss ns_returnredirect or just Javascript on the front end as a possible solution.

0
On

I'd say go with ad_returnredirect http://openacs.org/api-doc/proc-view?proc=ad_returnredirect It's recommended over ns_returnredirect for the reasons described on the API link.

0
On

This an example, I hope this will be usefull for you:

ad_form -name form1 -form {

    ....

} -after_submit {

      ad_returnredirect -allow_complete_url "http://www.google.com/"
}