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:

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: