Hello,

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?

Thank you,
Ovidiu

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to