From 69cdf57a02b877ef985186e9624fe8116f591fcf Mon Sep 17 00:00:00 2001 From: Daryl Haresign Date: Tue, 13 Jan 2026 11:35:35 -0500 Subject: [PATCH] fix: Escape language queries correctly `escape` escapes certain characters, but those don't include `+`, so clicking a `C++` language link will result in the `+`s not being escaped in the URL. This causes the search to search for `"C "` which finds no results. `encodeURIComponent` is what should be used. --- web/templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/templates.go b/web/templates.go index 4574e4741..e5aa2ced0 100644 --- a/web/templates.go +++ b/web/templates.go @@ -213,7 +213,7 @@ document.onkeydown=function(e){ Results for {{.QueryStr}}