Method HttpResponse():Redirect() Foundation

Redirects the browser to another URL.

:Redirect(cUrl) --> self

The method :Redirect() sends a response with status code 302 to the client, which instructs the browser to retrieve the resource from a different location. :Redirect() therefore has the drawback of requiring an additional request/reply cycle. However, :Redirect() can be used to redirect to any location, while :Transfer() is restricted to another <CXP/> resource or MVC path only.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.