fix: do not strip query in redirect hook when using client-side navigation (#2376)

This commit is contained in:
haslersn 2024-02-27 18:06:48 +01:00 committed by GitHub
parent 3540291065
commit 6d6019b956
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,7 @@ pub fn Router(
let navigate = navigate.clone();
// delay by a tick here, so that the Action updates *before* the redirect
request_animation_frame(move || {
navigate(&url.pathname(), Default::default());
navigate(&url.href(), Default::default());
});
// Use set_href() if the conditions for client-side navigation were not satisfied
} else if let Err(e) =