Background
What if a reference contains a link to another page on the same wiki? The standard behavior for such links (when shown as part of the page, not in a popup) is to open in the same browser tab, and not open a new one. Only external links open in new tabs. The definition of "external" in MediaWiki core might be a little more complicated, but essentially it's "links to another domain".
As of now, all links in a ReferencePreview popup open a new tab. This might not be what users expect. This ticket here is to discuss this, and find a solution that fits the users expectations best.
Note this ticket here is not the same as T215419, but more generic. While we think T215419 is a bug, this here is more a matter of opinion.
Relevant code: https://phabricator.wikimedia.org/diffusion/EPOP/browse/master/src/ui/templates/referencePreview/referencePreview.js$61
Outcome
Follow the behaviour pattern currently implemented in T190549: Differentiate between internal, sister-wiki, interwiki, and external links visually. That means, change behaviour so that:
- Internal, sister and inter-wiki links: open in same tab
- External links: open in new tab