1
0

Fix invalid search link formatting

This commit is contained in:
Zed
2026-02-10 22:53:54 +01:00
parent 1c06a67afd
commit dcec1eb458
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -43,9 +43,9 @@ proc createSearchRouter*(cfg: Config) =
resp Http404, showError("Invalid search", cfg)
get "/hashtag/@hash":
redirect("/search?q=" & encodeUrl("#" & @"hash"))
redirect("/search?f=tweets&q=" & encodeUrl("#" & @"hash"))
get "/opensearch":
let url = getUrlPrefix(cfg) & "/search?q="
let url = getUrlPrefix(cfg) & "/search?f=tweets&q="
resp Http200, {"Content-Type": "application/opensearchdescription+xml"},
generateOpenSearchXML(cfg.title, cfg.hostname, url)