From e991cde46f7d49bdd8af30f63a39a98b97f4aa52 Mon Sep 17 00:00:00 2001 From: Lia Lenckowski Date: Wed, 16 Aug 2023 20:26:13 +0200 Subject: don't appear in browser history when searching directly --- frontend/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/query.ts') diff --git a/frontend/query.ts b/frontend/query.ts index 37f62f4..e8d41b1 100644 --- a/frontend/query.ts +++ b/frontend/query.ts @@ -34,7 +34,7 @@ export async function process_query(default_engine: string, query: string) { if (!url) return status("error", "Invalid search engine.") status("success", `Forwarding to ${url}`) - setTimeout(() => document.location.href = url!, 0) + document.location.replace(url) } async function search_url(engine: string, query: string) { -- cgit v1.2.3-70-g09d2