fix: do not unescape query and hash in URLs when clicking links (closes (#4454)

This commit is contained in:
Greg Johnston
2025-11-21 13:16:24 -05:00
committed by GitHub
parent ff5b612e12
commit 629f4f9d0f

View File

@@ -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| {