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 /ui | |
| parent | 5878f47bf7b28e1cea548fa9631d28db954ae371 (diff) | |
| download | jellything-8d9b20d56d90d61de5b13cf2c3fc39f4c508611e.tar jellything-8d9b20d56d90d61de5b13cf2c3fc39f4c508611e.tar.bz2 jellything-8d9b20d56d90d61de5b13cf2c3fc39f4c508611e.tar.zst | |
fix transition when query params already present
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/client-scripts/src/transition.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |