Fix the fragment of old-style links to forms

Authored by Lucas_Werkmeister_WMDE on Nov 14 2018, 6:28 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.


Fix the fragment of old-style links to forms

Old edit summaries may contain links like [[L1#L1-F1]] when mentioning
forms. To link to the new form of such links instead ([[L1#F1]]),
implement the EntityLinkFormatter::getFragment() method accordingly.

This requires Wikibase change I99d03e1654 to work properly, but can be
merged without it, hence the lack of Depends-On on this change.

Bug: T208423
Change-Id: Ie68ebd020b5533dbe5a75d30ada904262afe02e8