ad_returnredirect

one of the documented procedures in this installation of the ACS
Usage:
ad_returnredirect {-permanent 0} target_url
What it does:
A replacement for ns_returnredirect. It uses ns_returnredirect but is better in three important aspects:
Defined in: /web/philip/packages/acs-core/utilities-procs.tcl

Source code:

arg_parser_for_ad_returnredirect $args

    if $permanent {
        if {[util_complete_url_p $target_url]} {
            # http://myserver.com/foo/bar.tcl style - just pass to ns_returnredirect
            permanently_redirect $target_url
        } elseif {[util_absolute_path_p $target_url]} {
            # /foo/bar.tcl style - prepend the current location:
            permanently_redirect [util_current_location]$target_url
        } else {
            # URL is relative to current directory.
            permanently_redirect [util_current_location][util_current_directory]$target_url
        }
    } else {
        if {[util_complete_url_p $target_url]} {
            # http://myserver.com/foo/bar.tcl style - just pass to ns_returnredirect
            ns_returnredirect $target_url
        } elseif {[util_absolute_path_p $target_url]} {
            # /foo/bar.tcl style - prepend the current location:
            ns_returnredirect [util_current_location]$target_url
        } else {
            # URL is relative to current directory.
            ns_returnredirect [util_current_location][util_current_directory]$target_url
        }
    }


philg@mit.edu