Page MenuHomephabricator

Fix for QRpedia URLs with extra /
ClosedPublic

Authored by kerberizer on Mar 12 2019, 10:30 AM.

Details

Summary

When generating URLs for the Bulgarian Wikipedia, QRpedia, and more specifically bg.qrwp.org, inserts an extra slash in the path after the /wiki/ part. Thus, instead of e.g. Ботевград, the QR code leads to /Ботевград. This will likely be fixed, but as an interim solution, instead of creating a bunch of /something articles pointing to something, we may as well just employ JS to redirect the browser to the correct page. There are no legitimate pages starting with a slash, so this shouldn't break anything.

Test Plan

Tested in the browser's console and in my own user's JS.

Diff Detail

Repository
rUI JS/CSS User Interface
Branch
enh/qrpedia-fix
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 22
Build 22: arc lint + arc unit

Event Timeline

kerberizer requested review of this revision.Mar 12 2019, 10:30 AM
kerberizer created this revision.
Borislav accepted this revision.Mar 12 2019, 5:46 PM
This revision is now accepted and ready to land.Mar 12 2019, 5:46 PM
This revision was automatically updated to reflect the committed changes.