We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using leptos_actix::redirect in a server function with JS disabled in Firefox or Chromium results in an empty response.
leptos_actix::redirect
Leptos Dependencies
From standard cargo leptos new template
cargo leptos new
use leptos::*; use leptos_router::*; #[server(LoginFn, "/serverfn")] pub async fn login() -> Result<(), ServerFnError> { use leptos_actix::redirect; redirect("/?some=thing"); Ok(()) } #[component] pub fn App() -> impl IntoView { let login = create_server_action::<LoginFn>(); view! { <ActionForm action=login> <button type="submit"> "Login" </button> </ActionForm> } }
To Reproduce
/
Expected behavior Browser should be redirected to /?some=thing.
/?some=thing
Screenshots
Additional context This has worked in most previous versions of Leptos.
The text was updated successfully, but these errors were encountered:
Thanks! See the comment in #2507 for an explanation. I tested Axum and it seems like this bug doesn't exist in that integration.
(This has probably been broken since 0.6.0)
Sorry, something went wrong.
yep, although i thought it got fixed around 0.6.7 😜
No branches or pull requests
Using
leptos_actix::redirect
in a server function with JS disabled in Firefox or Chromium results in an empty response.Leptos Dependencies
From standard
cargo leptos new
templateTo Reproduce
/
Expected behavior
Browser should be redirected to
/?some=thing
.Screenshots
Additional context
This has worked in most previous versions of Leptos.
The text was updated successfully, but these errors were encountered: