hack to handle slashes
This commit is contained in:
		
							parent
							
								
									6efab00e75
								
							
						
					
					
						commit
						0b569d2b86
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue