Page MenuHomePhabricator

Links to user pages in edit summaries display as red links in some views despite existence of global user page
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • create a user page on Meta-Wiki
  • go to a wiki where you don't have a local user page
  • edit any page and include the link to your user page in the edit summary

Test

I edited my page for testing on Portuguese Wikivoyage. The editing summary was as follows:

teste [[User:Edu!|Edu!]]

What happens?:
In the history the link appears red. The link also appears red on the recent changes page and my contributions page.

Screenshot_20211030-151840~2.jpg (191×540 px, 11 KB)

What should have happened instead?:
On the mobile version diff page the link appears blue, the same should happen on other pages as well.

Screenshot_20211030-151910~2.jpg (218×540 px, 10 KB)

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Google Chrome (94.0.4606.85)

Event Timeline

Aklapper changed the task status from Open to Stalled.Oct 30 2021, 5:19 PM

@Edu: Please do follow https://www.mediawiki.org/wiki/How_to_report_a_bug and do provide steps to reproduce by using and filling out the task template. Thanks. This task lacks URLs.

Bugreporter changed the task status from Stalled to Open.Oct 30 2021, 5:19 PM
Jdlrobson subscribed.

The mobile diff comes from wikidiff2 diff code lives inside core.

My $0.02: the diff on mobile looks like it's the one behaving correctly here, as the page exists.

The mobile diff comes from wikidiff2 diff code lives inside core.

The diff body, probably not the edit summary though?

My $0.02: the diff on mobile looks like it's the one behaving correctly here, as the page exists.

The page doesn't exist, but is known (in the sense of Title::isKnown()). So this is probably a matter of using that vs. Title::exists().
Agreed that the mobile behavior is the correct one. Known pages should be blue in edit summaries, just like in the article body.

Ah right. I hadn't realized that was the summary. The styling was too similar to the diff I thought it was part of the page. Thanks for correcting me @Tgr

Samwalton9-WMF renamed this task from red link to existing user page to Links to user pages in edit summaries display as red links in some views despite existence of global user page.Mar 14 2025, 12:28 PM
Samwalton9-WMF moved this task from Triaged to To be estimated on the Moderator-Tools-Team board.
Samwalton9-WMF subscribed.

Sounds like this should be a relatively straightforward fix, so prioritising this while we're blocked on some other RecentChanges work.

jsn.sherman changed the task status from Open to In Progress.Mar 21 2025, 1:40 PM
jsn.sherman claimed this task.
jsn.sherman moved this task from Ready to In Progress on the Moderator-Tools-Team (Kanban) board.

I was having trouble reproducing this locally, which led me down an interwiki config rabbit hole. So I went to double check on enwiki (where I probably should have started) and I'm not reproducing it there either. My user page only exists on meta, all others are copies from that source. I added a links to my user page on enwiki and commons and they seem to render fine. Perhaps this issue has been resolved since it was last looked at in 2021?
https://en.wikipedia.org/w/index.php?title=User%3AJSherman+%28WMF%29%2Fsandbox&date-range-to=2025-03-21&tagfilter=&action=history

image.png (156×754 px, 26 KB)

Could you verify @Edu?

Just confirming that I also can't reproduce this error - I tried on a couple of wikis, including one I had never logged into locally before - apologies for not double checking this earlier!

Appears to be a resolved issue, as with T296374 and T295038, which were all filed around the same time. Thanks for investigating!