Skip to content

Commit 629f4f9

Browse files
authored
fix: do not unescape query and hash in URLs when clicking links (closes (#4454)
1 parent ff5b612 commit 629f4f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

router/src/location/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ where
368368
ev.prevent_default();
369369
let to = path_name
370370
+ if url.search.is_empty() { "" } else { "?" }
371-
+ &Url::unescape(&url.search)
372-
+ &Url::unescape(&url.hash);
371+
+ &url.search
372+
+ &url.hash;
373373
let state = Reflect::get(&a, &JsValue::from_str("state"))
374374
.ok()
375375
.and_then(|value| {

0 commit comments

Comments
 (0)