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

This commit is contained in:
Greg Johnston
2025-11-18 20:44:55 -05:00
parent a0d657f9b1
commit b484b39779

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