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 #805pull/813/head
parent
7164d066c3
commit
f688b88bd8
Loading…
Reference in New Issue