[GH-ISSUE #805] [BUG] wikipedia alternative does not work for different languages #504

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

Originally created by @erikderzweite on GitHub (Jun 30, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/805

Describe the bug
If you use alternative to wikipedia it works for english language only. If you look for content in other languages not existing in English Wikipedia, then you land in the wikiless starting page upon clicking the link.

If you provide

WHOOGLE_ALT_WIKI=wikipedia.org
then all the wikipedia pages are opened in English Wikipedia regardless of the language of the original link.

Is there any way to disable alt links for wikipedia only?

To Reproduce
Steps to reproduce the behavior:

  1. Search for e.g. "Heinrich Heine"
  2. Try to open wikipedia link starting with "de."
  3. You land on English wikipedia page.

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
Originally created by @erikderzweite on GitHub (Jun 30, 2022). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/805 **Describe the bug** If you use alternative to wikipedia it works for english language only. If you look for content in other languages not existing in English Wikipedia, then you land in the wikiless starting page upon clicking the link. If you provide `WHOOGLE_ALT_WIKI=wikipedia.org ` then all the wikipedia pages are opened in English Wikipedia regardless of the language of the original link. Is there any way to disable alt links for wikipedia only? **To Reproduce** Steps to reproduce the behavior: 1. Search for e.g. "Heinrich Heine" 2. Try to open wikipedia link starting with "de." 3. You land on English wikipedia page. **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
kerem 2026-02-25 20:35:55 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@benbusby commented on GitHub (Jul 5, 2022):

If you set the alt to an empty value (in this case WHOOGLE_ALT_WIKI="" it will skip using wikiless and use the original wikipedia link instead.

<!-- gh-comment-id:1175232452 --> @benbusby commented on GitHub (Jul 5, 2022): If you set the alt to an empty value (in this case `WHOOGLE_ALT_WIKI=""` it will skip using wikiless and use the original wikipedia link instead.
Author
Owner

@erikderzweite commented on GitHub (Jul 5, 2022):

Thanks for the hint, I'll use it as a workaround!

The language problem with alternative wikis is still there though. I have own wikiless instance and when I search for e.g. "Heinrich Heine wiki" the first two results are wikipedia entries in English and German. Clicking on both links sends you to English wiki though.

Should I create another issue about it?

<!-- gh-comment-id:1175243478 --> @erikderzweite commented on GitHub (Jul 5, 2022): Thanks for the hint, I'll use it as a workaround! The language problem with alternative wikis is still there though. I have own wikiless instance and when I search for e.g. "Heinrich Heine wiki" the first two results are wikipedia entries in English and German. Clicking on both links sends you to English wiki though. Should I create another issue about it?
Author
Owner

@benbusby commented on GitHub (Jul 6, 2022):

No need, I just pushed an update that should fix that problem. The fix will be available on the latest tag in a little bit.

<!-- gh-comment-id:1176388846 --> @benbusby commented on GitHub (Jul 6, 2022): No need, I just pushed an update that should fix that problem. The fix will be available on the `latest` tag in a little bit.
Author
Owner

@erikderzweite commented on GitHub (Jul 8, 2022):

You are awesome, thank you! Newest docker build works with alternative wikipedia and languages.

<!-- gh-comment-id:1179245989 --> @erikderzweite commented on GitHub (Jul 8, 2022): You are awesome, thank you! Newest docker build works with alternative wikipedia and languages.
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#504
No description provided.