Skip to content

Fix wikipedia URL transformation

ms8661 requested to merge ms8661/nitterizeme:ms8661-develop-patch-90173 into develop

Changelog:

  • Updated wikilessPattern to accommodate mobile URLs (subdomain=m)
  • Fix language param lang appended to wikipedia URL
    • Currently the pattern causes the following to occur:
      • From: https://en.m.wikipedia.org/wiki/DNS_over_TLS
      • To: https://wikiless.org/wiki/DNS_over_TLS&lang=m
    • This change will properly parse the language param lang and ignore the mobile subdomain m
      • From: https://en.m.wikipedia.org/wiki/DNS_over_TLS
      • To: https://wikiless.org/wiki/DNS_over_TLS?lang=en // Note the ? instead of & and m subdomain is ignored

Link with sample data:

Edited by ms8661

Merge request reports