$response.redirect

Method $response.redirect() returns a HTTP redirect to the specific location.

Syntax

$response.redirect(location)

Parameters

location

Location to redirect (string)

Examples

$response.redirect('/redirected.html')