xdmp:redirect-response( $name as xs:string ) as empty-sequence()
Redirects the App Server response to a given location.
xdmp:redirect-response("http://marklogic.com/howtobuy.xqy")