Page MenuHomePhabricator

Reference auto name uses an existing name when the existing reference was only used inside template tranclusions
Open, Needs TriagePublic

Description

When adding a reference and reusing it further down an article, the VisualEditor used an already existing reference name as auto name, thus creating an error once the page was saved.
Here's the diff. <ref name=":0"> was already used in the article before this edit.

Maybe T92432 could fix this too.

Event Timeline

JTannerWMF added a subscriber: JTannerWMF.

We will investigate

Both of these cases occurred when the existing reference was only used inside a template transclusion:

VisualEditor can't see those references (T52896), so it didn't realize the name was already taken.

matmarex renamed this task from Reference auto name uses an existing name to Reference auto name uses an existing name when the existing reference was only used inside template tranclusions.Jan 22 2022, 1:19 AM