Keeping the other url parameters in Search redirections https://github.com/libredirect/libredirect/issues/523
This commit is contained in:
parent
932aa7dfb7
commit
e7f3b7d1c1
|
@ -138,11 +138,11 @@ function redirect(url, type, initiator, forceRedirection) {
|
||||||
else return `${randomInstance}${url.pathname}/`
|
else return `${randomInstance}${url.pathname}/`
|
||||||
case "searx":
|
case "searx":
|
||||||
case "searxng":
|
case "searxng":
|
||||||
return `${randomInstance}/?q=${encodeURIComponent(url.searchParams.get("q"))}`
|
return `${randomInstance}/${url.search}`
|
||||||
case "whoogle":
|
case "whoogle":
|
||||||
return `${randomInstance}/search?q=${encodeURIComponent(url.searchParams.get("q"))}`
|
return `${randomInstance}/search${url.search}`
|
||||||
case "librex":
|
case "librex":
|
||||||
return `${randomInstance}/search.php?q=${encodeURIComponent(url.searchParams.get("q"))}`
|
return `${randomInstance}/search.php${url.search}`
|
||||||
case "send":
|
case "send":
|
||||||
return randomInstance
|
return randomInstance
|
||||||
case "nitter":
|
case "nitter":
|
||||||
|
|
Loading…
Reference in New Issue