Skip to content

Commit

Permalink
fix: do not strip query in redirect hook when using client-side navig…
Browse files Browse the repository at this point in the history
…ation (#2376)
  • Loading branch information
haslersn authored Feb 27, 2024
1 parent 3540291 commit 6d6019b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/src/components/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) =
Expand Down

0 comments on commit 6d6019b

Please sign in to comment.