Page MenuHomePhabricator

SandboxLink: Link to non-existing sandbox page appears bluein Vector 2022 and Minerva
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
Johannnes89
Nov 1 2025, 12:36 PM
Referenced Files
F72083932: v22-2.png
Fri, Feb 13, 7:54 PM
F72083933: v22-1.png
Fri, Feb 13, 7:54 PM
Restricted File
Nov 3 2025, 7:25 PM
F69176650: Screenshot 2025-11-01 at 13.27.37.png
Nov 1 2025, 12:36 PM
F69176620: Screenshot 2025-11-01 at 13.26.51.png
Nov 1 2025, 12:36 PM

Description

Steps to replicate the issue:

What happens?:

  • The sandbox link appears blue

Screenshot 2025-11-01 at 13.26.51.png (718×586 px, 73 KB)

What should have happened instead?:

Screenshot 2025-11-01 at 13.27.37.png (172×1 px, 85 KB)

Other information:
Might be intentional behaviour in Vector 2022 – non-existing user talk pages also appear blue in the user menu (instead of red like in other skins)?

Event Timeline

Jdlrobson-WMF subscribed.

The SandboxLink extension is relying on default skin rules. The red link styling should be added in the SandboxLink extension.

Jdlrobson-WMF renamed this task from Link to non-existing sandbox page appears blue in Vector 2022 to SandboxLink: Link to non-existing sandbox page appears bluein Vector 2022 and Minerva.Nov 3 2025, 7:25 PM

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

[mediawiki/extensions/SandboxLink@master] "new" class should apply to link NOT list item

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

Vector 2022 intentionally doesn't want the redlink: T312157, so I believe this is not a bug and the task should be closed this as invalid.

The actual regression will be fixed in T417372

Also impacts Minerva

{F69819851}

This image is not attached, not viewable.

The patch seems to resolve the issue for all skins except Minerva (see T417372#11616493), so I want to say that this is a Minerva bug at this point.

(It resolved it on Vector 2022 too – I'm not sure how to reconcile it with the comments that red links are not desirable on that skin. I'll let y'all figure it out.)

It also gives Vector 2022 links inconsistent visual state in some cases, e.g:

v22-1.png (756×2 px, 201 KB)
v22-2.png (876×2 px, 143 KB)
Jdlrobson-WMF claimed this task.

The patch seems to resolve the issue for all skins except Minerva (see T417372#11616493), so I want to say that this is a Minerva bug at this point.

The issue here is that SandboxLink defers to the skin to take care of rendering. It makes the assumption that .new will result in a red link but that is not enforced by any stable contract. Minerva doesn't support red links in any of its menus so this is working as expected.

If it is imperative that the link is red, then it shouldn't be relying on the new class and that should be encapsulated with a style inside this extension instead of appending a class (that can be a new bug if someone cares passionately about this).