mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 04:05:57 +03:00
[GH-ISSUE #1230] [BUG] setting the alt reddit link to old.reddit.com causes the url to change to old.old.old.old.old. etc #733
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#733
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RoyalOughtness on GitHub (Jun 4, 2025).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/1230
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Deployment Method
runexecutableVersion of Whoogle Search
@allandiegoasilva commented on GitHub (Jul 9, 2025):
I tried to reproduce it and couldn't, could you give an example of the search term?
Look image below that all links is correctly:
@RoyalOughtness commented on GitHub (Jul 9, 2025):
@allandiegoasilva Strange. What value do you have set for
WHOOGLE_ALT_RD?Any search term that gives reddit results. For example, "reddit"
@allandiegoasilva commented on GitHub (Jul 9, 2025):
@RoyalOughtness I followed your steps for reproduce and set environment
WHOOGLE_ALT_RDwith valueold.reddit.com.How I test it?
whoogle-searchdocker image withdocker build -t whoogle-search:v1.0.0WHOOGLE_ALT_RDindocker-compose.ymlwith valueold.reddit.comwhoogle-search:v1.0.0imageAfter it, I have accessed and all look is ok.
@RoyalOughtness commented on GitHub (Jul 9, 2025):
@allandiegoasilva What is v1.0.0? I'm not seeing that tag available on docker. There's
latestand0.9.3.@RoyalOughtness commented on GitHub (Jul 9, 2025):
@allandiegoasilva oh, I misread. You built locally. Can you try with the 0.9.3 docker image and see if you still can't reproduce?
@allandiegoasilva commented on GitHub (Jul 9, 2025):
@RoyalOughtness
But you can check my
docker-compose.yml:In my test I got same result, every link is correctly:
Possible solution
0.9.3image withdocker rm image benbusby/whoogle-search:0.9.3and try again.environments@RoyalOughtness commented on GitHub (Jul 9, 2025):
@allandiegoasilva Here's my docker-compose. I wonder if the traefik integration is potentially causing issues? Although I don't see why that would be the case:
@allandiegoasilva commented on GitHub (Jul 10, 2025):
@RoyalOughtness Thanks for sharing your docker-compose.
I recommend simplifying the setup for initial testing — try running it without Traefik first to reduce variables and confirm the core functionality.
Once it's working properly, you can reintroduce Traefik and test the integration step-by-step.
Thank you,
Allan
@RoyalOughtness commented on GitHub (Jul 11, 2025):
@allandiegoasilva I tried with your docker-compose, and the alt link isn't working to begin with. I think the issue is that you're searching with
site:old.reddit.com. Try searching without that and let me know what happens. I think you'll find that the alt link isn't used (www.reddit.com isn't changed to old.reddit.com). The goal here isn't to redirect old.reddit.com to old.reddit.com, it's to redirect standard www.reddit.com links to old.reddit.com. Searching withsite:old.reddit.comnegates this.@RoyalOughtness commented on GitHub (Jul 14, 2025):
@allandiegoasilva I found another possible clue. This isn't specific to reddit. If I set the wikipedia override to
en.wikipedia.org, then this shows:But the actual url in this case is:
There is something off about the alt url handling.
@RoyalOughtness commented on GitHub (Jul 16, 2025):
@allandiegoasilva I found and fixed both bugs and some others 😄
traefik was not related. Have a look: https://github.com/benbusby/whoogle-search/pull/1235/
@Don-Swanson commented on GitHub (Sep 24, 2025):
This has been incorporated into the Beta release: https://github.com/benbusby/whoogle-search/releases/tag/v1.0.0-beta
Please provide feedback if this is now resolved in beta.