Page MenuHomePhabricator

Links to Wikidata Q-items don't open in a new tab
Closed, ResolvedPublicBUG REPORT

Description

User story: N/A

We have this:
When viewing structured data panels, if a user clicks on a property name (PXXX), it opens in a new tab, but an item (QXX) opens in the same window.

We want this:
All links to Wikidata properties AND items open in a new tab/window

Screenshots (if possible):

Acceptance Criteria:

  • All links to Wikidata properties AND items open in a new tab/window

During development, please test the following:

  • Test this feature while logged in AND logged out
  • Test this feature on at least one mobile browser
  • Test that this feature works on the file page AND the Add Data step on UploadWizard (if applicable, some features only exist on one or the other)

Details

Related Gerrit Patches:
mediawiki/extensions/WikibaseMediaInfo : masterMake item links open in new window

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 18 2019, 10:43 PM
Izno added a subscriber: Izno.EditedSep 19 2019, 3:05 AM

You shouldn't be opening any pages in a new tab in the general case. See https://www.w3.org/TR/WCAG20-TECHS/G200.html

Change 539463 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/WikibaseMediaInfo@master] Make item links open in new window

https://gerrit.wikimedia.org/r/539463

Change 539463 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Make item links open in new window

https://gerrit.wikimedia.org/r/539463

Ramsey-WMF closed this task as Resolved.Wed, Oct 23, 11:32 PM

Tested. Works.