Page MenuHomePhabricator

Edit summary in page history has a non-working anchor link if page section is a template
Closed, DuplicatePublicFeature

Description

Feature summary (what you would like to be able to do and where): When clicking on a section indicator in a page's history, the page should navigate to that section automatically, regardless of whether or not a template

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): if you were to navigate to the [[Wikipedia talk:Did you know]] , lots of section headings are templates that generate links, because it's easier that way. Problem is, if you're in the page's history and you click on that gray arrow thingy that appears when you edit in one section, it won't work for a template heading. We can substitute template headings, i guess, but is there a way to make it so that if i were to click on a link in the history, it would navigate me to [[Wikipedia talk:Did you know#Prep_1]] (which works) instead of [[Wikipedia talk:Did you know#{{Prep|1}}]] (which doesn't)?

Benefits (why should this be implemented?): doesn't give the annoying feeling that happens when you're trying to navigate to one section in a talk page and you end up at the top and now your day is ruined and your grilled cheese is getting cold + other miserableness. In all seriousness, it just seems like a neat and convenient feature to have.

Event Timeline

Hi @the-leeky-cauldron, thanks for taking the time to report this and welcome to Wikimedia Phabricator!

I assume this is about https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Did_you_know&action=history (full links are welcome) and the Edit summary linking to https://en.wikipedia.org/wiki/Wikipedia_talk:Did_you_know#{{Prep|1}} instead of https://en.wikipedia.org/wiki/Wikipedia_talk:Did_you_know#Prep_1 ?

lots of section headings are templates that generate links, because it's easier that way.

It might be easier on that page but harder on the page history page. :)

Aklapper renamed this task from Fixy thingy for history->section jumping to Edit summary in page history has a non-working anchor link if page section is a template.Jan 7 2022, 10:12 AM

that'd be correct, @Aklapper! (i do hope that pinged work) Yeah, that'd be the issue... is there a way to fix the page history page for that, or should we just start substituting template headings?