The redirect read-only property of the Request interface contains the mode for how redirects are handled.
redirect
external RequestRedirect get redirect;