Page MenuHomePhabricator

Link in sitenotice was rendering as self-link on Ukrainian Wikipedia
Closed, DuplicatePublicBUG REPORT

Description

Ukrainian Wikipedia currently has a Sitenotice and an Anonnotice with links to https://uk.wikipedia.org/wiki/Вікіпедія:Війна and https://uk.wikipedia.org/wiki/Вікіпедія:Війна/Ресурси respectively.

While the latter works fine, I have noticed that the link in the first now renders as a self-link (does not link anywhere, is marked with mw-selflink selflink classes). On the MediaWiki page itself it shows fine. Null edit did not help.

I could not reproduce it on testwiki by making a new link in its Sitenotice.

Note: it seems to have self-fixed, updated to past tense, but will leave this open in case someone wants to investigate

Event Timeline

Interestingly from mobile (from the same IP) it looks fine to me

And on computer now too. Was something reverted?

Base renamed this task from Link in sitenotice renders as self-link on Ukrainian Wikipedia to Link in sitenotice was rendering as self-link on Ukrainian Wikipedia.Apr 13 2022, 2:11 PM
Base updated the task description. (Show Details)
Base updated the task description. (Show Details)

This is a context caching problem same as T302754 but less harmful and unnoticeable.
When a page is linked in sitenotice, there is a chance that a user visited that page and the parsed notice is cached for a while, especially for a popular page.

Not that it is important but just had it again on [[:uk:Вікіпедія:Запити на перевірку користувачів]]. A reload has fixed it, the problem also didn't appear on other pages I opened.

(That background colour highlights selflinks in my stylesheets)

Screenshot_20230428_041547_Firefox.png (428×1 px, 105 KB)

Umherirrender subscribed.

The sitenotice is parsed in the context of the current page when it is missing and cached for 600 seconds.
That seems to be the way since the begin (that is e1b5e3f57f91ca93cb467c1f8cf43e0a1f223009 and before), not seeing a regression here

What can be more encouraging than to have your ticket closed as a duplicate of a bug from 14 years ago :)