mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: do not strip query in redirect hook when using client-side navigation (#2376)
This commit is contained in:
parent
3540291065
commit
6d6019b956
1 changed files with 1 additions and 1 deletions
|
@ -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) =
|
||||
|
|
Loading…
Reference in a new issue