Page MenuHomePhabricator

External services should open in a new window
Closed, ResolvedPublic

Description

Problem identified:
The links in the More details sidebar open within the same tab, thus navigating the user away from the Wikipedia article he was reading.

Suggested fix:

<a target="_blank" ...>

Concern to address:
This is common behavior on Wikipedia, and can be configured with wgExternalLinkTarget. Why should it be any different?

Event Timeline

Change 333716 had a related patch set uploaded (by Esanders):
Open external links in new window

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

Does this patch address the issue raised here: T150970?

@debt No.

This is talking about the external links in the More details sidebar. It has nothing to do with the full screen VS modal design

Thanks for the clarification, @JGirault, the details on this particular ticket were pretty vague.

$wgExternalLinkTarget is for third parties only, it will never flipped on WMF projects. When considering the behavior of external links, one needs to consider both usability guidelines (that strongly advocate for the same window in general case) and usage considerations for each particular case. Here, following an external link in the same window and then returning would result in map position being reset because we don't update window hashes with position or otherwise save it. I guess target="_blank" would not be needed once we have the oojas router in place.

$wgExternalLinkTarget is for third parties only, it will never flipped on WMF projects. When considering the behavior of external links, one needs to consider both usability guidelines (that strongly advocate for the same window in general case) and usage considerations for each particular case. Here, following an external link in the same window and then returning would result in map position being reset because we don't update window hashes with position or otherwise save it. I guess target="_blank" would not be needed once we have the oojas router in place.

Thanks @MaxSem, this is a strong argument in favor of the new window. Based on this, let's approve the change.

Change 333716 merged by jenkins-bot:
Open external links in new window

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