whoogle-search/app
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
..
models Counter latest result page style changes 2022-06-09 16:35:02 -06:00
static Update Simplified Chinese translation (#794) 2022-06-24 10:52:27 -06:00
templates Add more OpenSearch definitions (for images etc.) (#786) 2022-06-27 12:30:41 -06:00
utils Preserve wikipedia language setting for wikiless redirects 2022-07-06 09:49:43 -06:00
__init__.py Check file sizes in session dir before validation 2022-06-16 11:50:13 -06:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Fixes handling of maps (#792) 2022-06-27 12:33:08 -06:00
request.py Fix a crash with protected Tor control port (#785) 2022-06-22 10:23:58 -06:00
routes.py Use X-Forwarded-Host as url_root when present (#799) 2022-07-05 10:01:47 -06:00