Page MenuHomePhabricator

Echo notification points to incorrect anchor (some <pre>/<nowiki> text within that section which includes ==text==)
Open, Needs TriagePublicBUG REPORT

Description

Notifications may contain incorrect section (anchor) links if the section contains <pre>/<nowiki> code

When I received notification about this edit:

https://commons.wikimedia.org/w/index.php?title=Commons:Undeletion_requests/Current_requests&oldid=prev&diff=568644986

it contained the link

https://commons.wikimedia.org/wiki/Commons:Undeletion_requests/Current_requests#Opis

("Opis" is Polish translation of "Description") which seems to originate from parsed <pre>/<nowiki> code:

=={{int:filedesc}}==

(which should not be parsed).

The link should be to the existent section anchor (File:South_Australian_Railways_520_class_locomotives_--_evolution_of_design.tif at https://commons.wikimedia.org/wiki/Commons:Undeletion_requests/Current_requests#File:South_Australian_Railways_520_class_locomotives_--_evolution_of_design.tif in this case)

Event Timeline

Aklapper renamed this task from incorrect anchors in notifications to Mail notification points to incorrect anchor (some <pre>/<nowiki> text within that section which includes ==text==).Jun 12 2021, 8:40 AM
Aklapper updated the task description. (Show Details)

@Aklapper This is not anout mail notifications. This is about on-wiki notifications (under the bell icon)

@Ankry: Thanks for the clarification! It would be welcome if you could follow https://www.mediawiki.org/wiki/How_to_report_a_bug to avoid ambiguity in the future

Aklapper renamed this task from Mail notification points to incorrect anchor (some <pre>/<nowiki> text within that section which includes ==text==) to Echo notification points to incorrect anchor (some <pre>/<nowiki> text within that section which includes ==text==).Jun 14 2021, 7:02 AM
kostajh subscribed.

This should be fixed, but is not something that Growth-Team has time to work in the near-to-midterm future.