Steps to reproduce:
- Find any article with [citation needed] and open it in mobile version.
- Try to click on the links that aren’t references.
Problems in mobile version are appearing with all of templates that use any links in <sup> tags in them: e. g., https://en.wikipedia.org/wiki/Special:WhatLinksHere/Template:Citation_needed
Problematic code:
var $refs = page.$('sup a');
if ($refs.length) {
$refs.off('click').on('click', {
page: page
}, onClickReference);
page.$('.mw-cite-backlink a').off('click');
}Please change jQuery selector to $('.reference a') or something similar, bug is fairly easy to fix.