diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-03-11 17:49:19 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-03-11 17:49:19 +0100 |
| commit | 8d9b20d56d90d61de5b13cf2c3fc39f4c508611e (patch) | |
| tree | d66ab6bfaf85d9df29a220c6e938e8be49d0f31f | |
| parent | 5878f47bf7b28e1cea548fa9631d28db954ae371 (diff) | |
| download | jellything-8d9b20d56d90d61de5b13cf2c3fc39f4c508611e.tar jellything-8d9b20d56d90d61de5b13cf2c3fc39f4c508611e.tar.bz2 jellything-8d9b20d56d90d61de5b13cf2c3fc39f4c508611e.tar.zst | |
fix transition when query params already present
| -rw-r--r-- | database/src/kv/index.rs | 2 | ||||
| -rw-r--r-- | ui/client-scripts/src/transition.ts | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/database/src/kv/index.rs b/database/src/kv/index.rs index 2c96b48..7a7567a 100644 --- a/database/src/kv/index.rs +++ b/database/src/kv/index.rs @@ -263,7 +263,7 @@ pub fn iter_index<'a>( } fn text_tokenizer(text: &str) -> HashSet<String> { - text.split(|x| matches!(x, ' ' | ',' | ':' | '/' | '+' | '&')) + text.split(|x| matches!(x, ' ' | ',' | ':' | '/' | '+' | '&' | '@' | '#')) .filter(|x| !x.is_empty()) .map(|s| s.to_lowercase()) .collect() diff --git a/ui/client-scripts/src/transition.ts b/ui/client-scripts/src/transition.ts index 2bf11ce..d68444a 100644 --- a/ui/client-scripts/src/transition.ts +++ b/ui/client-scripts/src/transition.ts @@ -55,7 +55,9 @@ function show_message(mesg: string, mode: "error" | "success" = "error") { let i = 0; function prepare_load(href: string, state?: HistoryState) { - const r_promise = fetch(href + "?no_scaff", { headers: { accept: "text/html" }, redirect: "manual" }) + const href_url = new URL(href) + href_url.searchParams.set("no_scaff", "") + const r_promise = fetch(href_url, { headers: { accept: "text/html" }, redirect: "manual" }) return async () => { let rt = "" try { |