hack to handle slashes
This commit is contained in:
parent
6efab00e75
commit
0b569d2b86
@ -66,7 +66,8 @@ function getBangredirectUrl() {
|
|||||||
// https://www.google.com/search?q={{{s}}}
|
// https://www.google.com/search?q={{{s}}}
|
||||||
const searchUrl = selectedBang?.u.replace(
|
const searchUrl = selectedBang?.u.replace(
|
||||||
"{{{s}}}",
|
"{{{s}}}",
|
||||||
encodeURIComponent(cleanQuery)
|
// Replace %2F with / to fix formats like "!ghr+t3dotgg/unduck"
|
||||||
|
encodeURIComponent(cleanQuery).replace(/%2F/g, "/")
|
||||||
);
|
);
|
||||||
if (!searchUrl) return null;
|
if (!searchUrl) return null;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user