pub fn redirect(to: impl Into<String>) -> Rejection
Shorthand for Rejection::Redirect(Redirect::to(to)). See Redirect for how it updates the history.
Rejection::Redirect(Redirect::to(to))
Redirect