[MediaWiki-l] How to update all links including an anchor that changed
MediaWiki allows anchor in links, which, once followed, lead to a
specific location in the target page. As an example
[[TargetPage#TargetAnchor]] directs the browser to <span
id="TargetAnchor"/> in TargetPage. This works great, until the target
anchor is modified. This is especially easy to do with headings, which
get anchors by default, and can be changed easily. Once the anchor is
changed, all links containing the old anchor become partially invalid:
they still lead to the right page, but the location in page is lost.
I am wondering if there is a way (extension, functionality, procedure)
to automatically update all links which contain a specific anchor, when
that anchor is modified.
As an intermediate step, a list of links containing a specific anchor
would help - can it be obtained somehow?
> This would be a really useful feature. Currently, the
> equivalent manual process is laborious and error-prone.
AFAIUI, the feature you are looking for is related to
https://phabricator.wikimedia.org/T18561 (I believe there
were other, similar RFEs, but I can't find them now). You
could file an issue with your specific use case as a parent
of that task.