Page MenuHomePhabricator

Provide a direct link to go to a redirect target
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
As was discussed in T5324, many users currently use page tabs to be able to copy a short link to redirect target without going to it directly. This functionality is currently provided by page tabs, but for consistency it should be provided on the page itself with an appropriate accessible label (something like ‘Go to redirect target’).

It needs to be determined whether on diff pages, this link should be present and whether it should point to the target at the time or to the current redirect page target. Right now, the link is present and it points to the current version page target.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

  • Allows to copy short links for editors (mostly useful for ASCII languages since any Unicode links get deformed by browsers).

Benefits (why should this be implemented?):
This would allow to make the page tabs consistently point to a redirect page in all page views.

(Right now this is a task to describe what needs to be done. Any work on this should probably be done either at the same time or after T380530: Add Parsoid-compatible <link> tag to legacy parser output for redirects gets done.)

Event Timeline

Allows to copy short links for editors (mostly useful for ASCII languages since any Unicode links get deformed by browsers).

Actually, if there was a dedicated button/link for this, we could make it copy nice links even when they use non-ASCII characters with a couple of lines of JS code, like in T357021: https://gerrit.wikimedia.org/g/mediawiki/extensions/DiscussionTools/+/a75f340eea8e5e2694febbcc71a4c8335619f111/modules/permalinks.js#4

Thanks for sharing that code. Yeah, definitely can be done as part of this task.