Page MenuHomePhabricator

Broken edit section links: Cannot find section (due to the <translate> markup arrangement)
Closed, InvalidPublic

Description

Steps to reproduce:
Go to https://meta.wikimedia.org/wiki/Learning_patterns/Business_cards_and_email_adresses_for_volunteers
Click edit next to any section but the first

Expect result:
Allows editing the section

Actual result:
You tried to edit a section that does not exist. It may have been moved or deleted while you were viewing the page.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Aklapper renamed this task from Broken edit section links: Cannot find section to Broken edit section links: Cannot find section (due to the <translate> markup arrangement).Jul 24 2019, 8:51 AM
Aklapper closed this task as Invalid.

Referring to https://meta.wikimedia.org/w/index.php?title=Learning_patterns/Business_cards_and_email_adresses_for_volunteers&oldid=19229183 :

&action=edit&section=1 already goes to the very last section on the rendered page, which is == Endorsements == in the page source.

All over section headers before have been obfuscated by <translate> markup, like:

== <translate><!--T:8-->
What problem does this solve?</translate> ==

The correct markup is covered on https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_example#Step_4:_Making_changes :

<translate>
== What problem does this solve? == <!--T:8-->
</translate>

Closing this task as invalid as wrong on-wiki content is out of scope for Phab. :)