Page MenuHomePhabricator

[Regression] Section anchor lost when insering link with VisualEditor
Closed, DuplicatePublic

Description

  1. https://www.mediawiki.org/wiki/Project:Sandbox?veaction=edit
  2. Insert paragraph and type Test.
  3. Select Test and create a link.
  4. Enter Compatibility#Browsers. Select the bolded recommendation for "Compatibility#Browsers".

Actual:
The section anchor is lost in both the preview and the generated wikitext. It is visible in the link inspector and context menu label, however.

  • Observe that after clicking Done, the context menu shows in its preview in bold that this is a link to "Compatibility#Browsers".
  • Observe that the preview link itself does not include the section anchor.
  • When saving, the generated wikitext contains [[Compatibility|Test]]. Expected [[Compatibility#Browsers|Test]].