whoogle-search/app/utils
Ben Busby f688b88bd8
Preserve wikipedia language setting for wikiless redirects
Wikipedia -> Wikiless redirects always result in an english language
result, even if the Wikipedia result would've been in a non-english
language. This is due to Wikipedia using language specific subdomains
(i.e. de.wikipedia.org, en.wikipedia.org, etc) whereas Wikiless uses a
"lang" url param.

This has been fixed by inspecting the subdomain of the wikipedia link
and passing that value to Wikiless as the lang param if it's determined
to be a language specific value (currently just looking for a 2-char
subdomain).

See #805
2022-07-06 09:49:43 -06:00
..
__init__.py Project refactor (#85) 2020-06-02 12:54:47 -06:00
bangs.py Fall back to netloc for bang search if query is empty 2022-04-20 14:50:32 -06:00
misc.py Use X-Forwarded-Host as url_root when present (#799) 2022-07-05 10:01:47 -06:00
results.py Preserve wikipedia language setting for wikiless redirects 2022-07-06 09:49:43 -06:00
search.py Use X-Forwarded-Host as url_root when present (#799) 2022-07-05 10:01:47 -06:00
session.py Improve public instance session management (#480) 2021-11-17 19:35:30 -07:00