Page MenuHomePhabricator

VisualEditor treats links to sections on the local page as selflinks
Closed, ResolvedPublic1 Story Points

Description

Consider a wiki site with various headlines and you want to link to a specific one ("critism" e.g.). When the site is named "GreatProduct" you'll do so by using the anchor links and create a link to GreatProduct#critism with the link tool. This creates the following wikitext: [[GreatProduct#critism]].

In the page this is correctly shown as a normal link later, however in the editor is it displays as a black link as if it would (only) "link" to the same site (aka [[GreatProduct]])…

Event Timeline

rugk created this task.Apr 11 2017, 9:41 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 11 2017, 9:41 AM

Change 347644 had a related patch set uploaded (by DLynch):
[mediawiki/extensions/VisualEditor@master] LinkCache: don't treat a link with a fragment as a selflink

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

Jdforrester-WMF renamed this task from VisualEditor wrongly displays links to same page as black to VisualEditor treats links to sections on the local page as selflinks.Apr 11 2017, 5:16 PM
Jdforrester-WMF assigned this task to DLynch.
Jdforrester-WMF triaged this task as Normal priority.
Jdforrester-WMF set the point value for this task to 1.

Change 347644 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] LinkCache: don't treat a link with a fragment as a selflink

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

Restricted Application added a project: User-Ryasmeen. · View Herald TranscriptApr 11 2017, 5:40 PM