Keeping the other url parameters in Search redirections https://github.com/libredirect/libredirect/issues/523

This commit is contained in:
ManeraKai 2022-12-08 11:59:06 +03:00
parent 932aa7dfb7
commit e7f3b7d1c1
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 3 additions and 3 deletions

View File

@ -138,11 +138,11 @@ function redirect(url, type, initiator, forceRedirection) {
else return `${randomInstance}${url.pathname}/`
case "searx":
case "searxng":
return `${randomInstance}/?q=${encodeURIComponent(url.searchParams.get("q"))}`
return `${randomInstance}/${url.search}`
case "whoogle":
return `${randomInstance}/search?q=${encodeURIComponent(url.searchParams.get("q"))}`
return `${randomInstance}/search${url.search}`
case "librex":
return `${randomInstance}/search.php?q=${encodeURIComponent(url.searchParams.get("q"))}`
return `${randomInstance}/search.php${url.search}`
case "send":
return randomInstance
case "nitter":