From b484b3977992b6ca1712f037a6ebbf6f3ea2ceed Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Tue, 18 Nov 2025 20:44:55 -0500 Subject: [PATCH] fix: do not unescape query and hash in URLs when clicking links (closes --- router/src/location/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/src/location/mod.rs b/router/src/location/mod.rs index d99ada30b..18cef2c7b 100644 --- a/router/src/location/mod.rs +++ b/router/src/location/mod.rs @@ -368,8 +368,8 @@ where ev.prevent_default(); let to = path_name + if url.search.is_empty() { "" } else { "?" } - + &Url::unescape(&url.search) - + &Url::unescape(&url.hash); + + &url.search + + &url.hash; let state = Reflect::get(&a, &JsValue::from_str("state")) .ok() .and_then(|value| {