fix: include missing query params in navigation when <ActionForm/> receives a redirect (#728)

Previous solution in #727 included manually inserted `?` when a leading
`?` is present automatically in `Url.search`.
This commit is contained in:
Andrew Chang-DeWitt 2023-03-22 19:05:21 -05:00 committed by GitHub
parent 286f3eebe4
commit c2fdd2cd70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,10 @@ where
Ok(url) => {
request_animation_frame(move || {
if let Err(e) = navigate(
&url.pathname,
&format!(
"{}{}",
url.pathname, url.search,
),
Default::default(),
) {
warn!("{}", e);