benbusby / whoogle-search

A self-hosted, ad-free, privacy-respecting metasearch engine
https://pypi.org/project/whoogle-search/
MIT License
9.57k stars 945 forks source link

[BUG] Bangs don't work - self-hosted but also some public instances #1174

Open roseyhead opened 2 months ago

roseyhead commented 2 months ago

Describe the bug Pretty simple - bangs don't work. I've tried three different devices, four different browsers, tried from the search bar in Firefox as well as from the Whoogle home page, tried multiple bangs (!g, !w, !yt), tried a couple of public instances in addition to my self-hosted site: https://s.tokhmi.xyz - does not work for me https://wg.vern.cc/ - does not work https://search.garudalinux.org/ - DOES work

To Reproduce Steps to reproduce the behavior:

  1. Go to 'http://whoogle.internal'
  2. Enter '!g test' into search box Expected: Browser lands on Google search page for "test" Actual result: Browser lands on Whoogle search page for "!g test"

Deployment Method

Version of Whoogle Search

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context I've tried the 3 public instances listed above side by side, copy-pasted the same search query. search.garudalinux.org works, the other 3 do not. Very strange!

roseyhead commented 2 months ago

I've just fixed this. I was looking through my docker-compose file, thought maybe it was because I had WHOOGLE_MINIMAL=true set, made that false and recreated the container. Bangs work! Just in case, went back, set it to true, recreated the container and bangs still work. I'm about 80% sure I'd tried stopping and recreating the container without that config change, but I could be wrong. At any rate, my self-hosted instance now works but those two public instances still don't.