fix: do not strip query in redirect hook when using client-side navigation (#2376)
This commit is contained in:
parent
3540291065
commit
6d6019b956
|
@ -70,7 +70,7 @@ pub fn Router(
|
||||||
let navigate = navigate.clone();
|
let navigate = navigate.clone();
|
||||||
// delay by a tick here, so that the Action updates *before* the redirect
|
// delay by a tick here, so that the Action updates *before* the redirect
|
||||||
request_animation_frame(move || {
|
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
|
// Use set_href() if the conditions for client-side navigation were not satisfied
|
||||||
} else if let Err(e) =
|
} else if let Err(e) =
|
||||||
|
|
Loading…
Reference in New Issue