template::forward (public)

 template::forward url [ args... ]

Defined in packages/acs-templating/tcl/filter-procs.tcl

Redirect and abort processing if "template::forward your_url t" is used. The url will be cached

Parameters:
url (required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-lang/www/admin/locale-make-default.tcl packages/acs-lang/ www/admin/locale-make-default.tcl template::forward template::forward packages/acs-lang/www/admin/locale-make-default.tcl->template::forward template::wizard::forward template::wizard::forward (public) template::wizard::forward->template::forward template::wizard::get_current_step template::wizard::get_current_step (public) template::wizard::get_current_step->template::forward ad_cache_returnredirect ad_cache_returnredirect (public) template::forward->ad_cache_returnredirect ad_returnredirect ad_returnredirect (public) template::forward->ad_returnredirect ad_script_abort ad_script_abort (public) template::forward->ad_script_abort

Testcases:
No testcase defined.
Source code:
    # DRB: The code that was here before didn't preserve the protocol, always
    # using HTTP even if HTTPS was used to establish the connection.  Besides
    # which ad_returnredirect has funky checks for even funkier browsers, and
    # is therefore not only the standard way to redirect in OpenACS 4 but
    # more robust as well.

    set cache_p [lindex $args 0]

    if {$cache_p == "t"} {
        lassign $args . persistent_p excluded_vars

        ad_cache_returnredirect $url $persistent_p $excluded_vars
    } else {
        ad_returnredirect $url
    }
    ad_script_abort
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: