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