aboutsummaryrefslogtreecommitdiff
path: root/frontend/search.ts
diff options
context:
space:
mode:
authorLia Lenckowski <lialenck@protonmail.com>2023-08-23 17:53:59 +0200
committerLia Lenckowski <lialenck@protonmail.com>2023-08-23 17:53:59 +0200
commitc85a846fcee843ae830d1acd0833ddf95fbb3d7e (patch)
treed0021a425f0094251cf48f501d1312f74946fe0c /frontend/search.ts
parent49f8a190a5de848a834e82749799295fe9a4bc50 (diff)
downloadfastbangs-c85a846fcee843ae830d1acd0833ddf95fbb3d7e.tar
fastbangs-c85a846fcee843ae830d1acd0833ddf95fbb3d7e.tar.bz2
fastbangs-c85a846fcee843ae830d1acd0833ddf95fbb3d7e.tar.zst
make all urls relative
now works with url-rewriting reverse proxies, when BASE_URL is set correctly
Diffstat (limited to 'frontend/search.ts')
-rw-r--r--frontend/search.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/search.ts b/frontend/search.ts
index 40b7f91..02d8582 100644
--- a/frontend/search.ts
+++ b/frontend/search.ts
@@ -54,7 +54,7 @@ function link_engine(engine: string) {
rel: "search",
id: "search-link",
type: "application/opensearchdescription+xml",
- href: `/search.xml?default=${encodeURIComponent(engine)}`,
+ href: `search.xml?default=${encodeURIComponent(engine)}`,
title: `Fastbangs (default engine: ${engine})`
})
document.head.append(link)