Function leptos_axum::redirect
source · pub fn redirect(path: &str)
Expand description
Provides an easy way to redirect the user from within a server function. Mimicking the Remix redirect()
,
it sets a StatusCode of 302 and a LOCATION header with the provided value.
If looking to redirect from the client, leptos_router::use_navigate()
should be used instead