Page MenuHomePhabricator

Watchlist displays multiple 'edit watchlist' links (when wlenhancedfilters-disable is not true and skin is not using deprecated menus)
Closed, ResolvedPublicBUG REPORT

Description

Spinning out from {T409774#11508807} there is a misconfiguration in recent changes.

Steps to replicate the issue (include links if applicable):

What happens?:
Two links to watchlist

image.png (246×1 px, 42 KB)

What should have happened instead?:
The right side link is added by core RCFilters App but only for skins that don't have the top bar. This should check for the presence of $('#p-associated-pages').length to avoid duplication.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Note this bug will spread to other skins including legacy Vector too without any fix.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jdlrobson-WMF renamed this task from Timeless has two 'edit watchlist' links on Watchlist page (when wlenhancedfilters-disable is not true): to Recent Changes displays multiple 'edit watchlist' links on Watchlist page (when wlenhancedfilters-disable is not true and skin is not using deprecated menus).Jan 9 2026, 11:40 PM
Jdlrobson-WMF updated the task description. (Show Details)

Yes, checking #p-associated-pages would be more correct. However, Timeless itself does not have the id now, it needs to be fixed.

Change #1225625 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Timeless@master] Use p-associated-pages ID instead of p-namespaces

https://gerrit.wikimedia.org/r/1225625

Jdlrobson-WMF renamed this task from Recent Changes displays multiple 'edit watchlist' links on Watchlist page (when wlenhancedfilters-disable is not true and skin is not using deprecated menus) to Watchlist displays multiple 'edit watchlist' links (when wlenhancedfilters-disable is not true and skin is not using deprecated menus).Jan 13 2026, 10:51 PM

Change #1226916 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Do not duplicate edit watchlist link on skins which already have it

https://gerrit.wikimedia.org/r/1226916

@Samwalton9-WMF note this is now impacting Monobook as well as Timeless. I posted a suggested fix.

Change #1225625 merged by jenkins-bot:

[mediawiki/skins/Timeless@master] Use p-associated-pages ID instead of p-namespaces

https://gerrit.wikimedia.org/r/1225625

Timeless patch is merged but Core patch still requires review.

Change #1226916 merged by jenkins-bot:

[mediawiki/core@master] Do not duplicate edit watchlist link on skins which already have it

https://gerrit.wikimedia.org/r/1226916

jsn.sherman subscribed.

verified working on testwiki

jsn.sherman claimed this task.