Page MenuHomePhabricator

When editing a page and renaming an anchor, warn when other pages linking to that anchor
Open, Needs TriagePublicFeature

Description

On https://en.wikipedia.org/wiki/Talk:Ski-slope_nose we see Ski-slope_nose was chosen to be a redirection.
However the exact anchor has changed, so it no longer redirects to where people intended it.

Such situations could easily be avoided, if when when editing a page, a warning would appear:
"XXX other page depends on the ==header== that you are removing!!

Please, after saving your edit, immediately resolve that problem. Thank you."

Event Timeline

Aklapper renamed this task from Detect when anchors are broken to When editing a page and renaming an anchor, warn when other pages linking to that anchor.Mar 11 2021, 8:03 AM
Aklapper changed the subtype of this task from "Task" to "Feature Request".Mar 11 2021, 8:05 AM

Checking all existing incoming links for every edit sounds quite expensive performance-wise?

It might be easier to automatically add {{anchor|oldheadername}} above the renamed header if that template existed across all wikis.