Page MenuHomePhabricator

The URL on which we're redirected after a section update, now displays the metacharacters and breaks the anchors
Open, Needs TriagePublic

Description

I can't find the diff from the last migration https://www.mediawiki.org/wiki/MediaWiki_1.31/wmf.30.
But since today, the anchors are broken on all wikis, on all edited sections which contains some templates.
So the is a serious bug for several wiktionaries.

To reproduce the bug:

  1. Go to https://fr.wiktionary.org/w/index.php?title=regression&action=edit&section=4
  2. Click on "Publier les modifications" (publish a null edit)
  3. See the URL which uses an invalid anchor: https://fr.wiktionary.org/wiki/regression#{{S|antonymes}}

Idem on:

Event Timeline

@JackPotte: Thanks for reporting this! I've edited the task description to include the actual outcome. For future reference, please include the outcome / results of steps (in case that somebody else cannot reproduce the problem, that somebody else would have to guess what the problem is that you see). Thanks again!

The wikis you linked are still on 1.31.0-wmf.29, and have been for a week. If this behavior changed today, I'd be looking at backports and configuration changes.

Can you clarify what is your expected behavior? If you expect to be redirected to https://fr.wiktionary.org/wiki/regression#Antonymes, then I am 99% sure that never worked. We only parse a small subset of wikitext in edit summaries, and it definitely does not include templates.

(As far as I can tell, the related code last changed around June 2017, when we changed the encoding of heading anchors.)

I'm not sure that it has begun today, but as I edit one of these wikis every day, I should have noticed any change the same day, and I'm convinced that this bug is systematic and has appeared this week.

Concerning the outcome, before the bug the anchors were the same as those from the TOC.
So in my first example, https://fr.wiktionary.org/wiki/regression#Antonymes instead of https://fr.wiktionary.org/wiki/regression#{{S|antonymes}}.