ad_return_url (public)
ad_return_url [ -urlencode ] [ -path_encode ] [ -qualified ] \ [ -default_url default_url ] [ extra_args ]
Defined in packages/acs-tcl/tcl/defs-procs.tcl
Build a return url suitable for passing to a page you expect to return back to the current page. Per default, the result is URL-encoded (like the result of "export_vars" or ":pretty_link").
Example for direct inclusion in a link:
ad_returnredirect "foo?return_url=[ad_return_url]"Example setting a variable to be used by export_vars:set return_url [ad_return_url] set edit_link [export_vars -base edit item_id return_url]Example setting a variable with extra_vars:set return_url [ad_return_url [list [list some_id $some_id] [list some_other_id $some_other_id]]]
- Switches:
- -urlencode (optional, boolean)
- -path_encode (optional, boolean, defaults to
"true"
)- If false do no URL-encode the result
- -qualified (optional, boolean)
- If provided the return URL will be fully qualified including http or https.
- -default_url (optional, defaults to
"."
)- When there is no connection, fall back to this URL
- Parameters:
- extra_args (optional)
- A list of {name value} lists to append to the query string
- Author:
- Don Baccus <dhogaza@pacifier.com>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- login_logout_urls, xowiki_test_cases