Motivation
Article pages sometimes contain extra parameters, for example when you look at an older revision coming from the history.
Right now, reference previews do not work whenever the URL has any other parameter but the title parameter.
Bug example
https://en.wikipedia.beta.wmflabs.org/wiki/Dog?purge=now
This seems due to the way the title parser is used. It will return undefined in the above case.
that clashes with
Acceptance Criteria
- No matter the extra parameters of the page URL, (even if it is more than one), reference previews work.
Notes
- The behavior does not affect page previews.
- It should be checked back with Web-Team-Backlog team how the current implementation came into existence.