[GH-ISSUE #784] [BUG] WHOOGLE_CONFIG_COUNTRY not changing country #496

Closed
opened 2026-02-25 20:35:53 +03:00 by kerem · 2 comments
Owner

Originally created by @jjakc-76 on GitHub (Jun 14, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/784

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behaviour:

  1. Set WHOOGLE_CONFIG_COUNTRY to countryUK
  2. Recreate container
  3. Go to homepage, the country is set, but when searching it's still the country where the instance is hosted (for me, Germany)
  4. If you go back to the homepage and just click "Apply" then it works.

Deployment Method

  • Heroku (one-click deploy)
  • Docker
  • run executable
  • pip/pipx
  • Other: [describe setup]

Version of Whoogle Search

  • Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc)
  • Version [version number]
  • Not sure

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Firefox
  • Version latest

Right after container is made
Search results without right after container is made
Search results after clicking "Apply"

Originally created by @jjakc-76 on GitHub (Jun 14, 2022). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/784 **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behaviour: 1. Set WHOOGLE_CONFIG_COUNTRY to countryUK 2. Recreate container 3. Go to homepage, the country is set, but when searching it's still the country where the instance is hosted (for me, Germany) 4. If you go back to the homepage and just click "Apply" then it works. **Deployment Method** - [ ] Heroku (one-click deploy) - [x] Docker - [ ] `run` executable - [ ] pip/pipx - [ ] Other: [describe setup] **Version of Whoogle Search** - [x] Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc) - [ ] Version [version number] - [ ] Not sure **Desktop (please complete the following information):** - OS: Windows 11 - Browser Firefox - Version latest [Right after container is made](https://i.imgur.com/HoS0gHv.png) [Search results without right after container is made](https://i.imgur.com/YSKrP3b.png) [Search results after clicking "Apply"](https://i.imgur.com/vXN2Srj.png)
kerem 2026-02-25 20:35:53 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@benbusby commented on GitHub (Jun 16, 2022):

The "country" prefix isn't needed and isn't recognized as a valid param when forwarding the search to Google. The correct setting for this would be just WHOOGLE_CONFIG_COUNTRY=UK. The template currently just checks to see if the any country value (UK in this case) matches any part of the config setting (countryUK), which incorrectly makes it seem like the config value is set up. I'll push a fix in a sec to clarify that.

<!-- gh-comment-id:1157987748 --> @benbusby commented on GitHub (Jun 16, 2022): The "country" prefix isn't needed and isn't recognized as a valid param when forwarding the search to Google. The correct setting for this would be just `WHOOGLE_CONFIG_COUNTRY=UK`. The template currently just checks to see if the any country value (`UK` in this case) matches any part of the config setting (`countryUK`), which incorrectly makes it seem like the config value is set up. I'll push a fix in a sec to clarify that.
Author
Owner

@benbusby commented on GitHub (Jun 16, 2022):

OK, should be updated on main/latest now.

<!-- gh-comment-id:1157990756 --> @benbusby commented on GitHub (Jun 16, 2022): OK, should be updated on main/latest now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#496
No description provided.