Page MenuHomePhabricator

Clicking a redlink to a protected page causes VisualEditor to load, but hold any information about the page being protected
Open, Needs TriagePublic

Description

Steps to reproduce

  1. Log out of your accounts
  2. go to https://cs.wikipedia.org/w/index.php?title=Speci%C3%A1ln%C3%AD:Protokolovac%C3%AD_z%C3%A1znamy/protect
  3. Find any redlink there and click it
  4. VisualEditor loads, doesn't show any first-sight visible information about page being protected, and user can't write

Expected

VisualEditor shows "page is protected" kind of message, similar to what code editor does.

Screencast

Version details

Related Objects

Event Timeline

Urbanecm created this task.Jan 15 2020, 5:09 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 15 2020, 5:09 PM

There is actually a message about protection in the notices popup, but you have to scroll down to see it:


(this text is https://cs.wikipedia.org/wiki/MediaWiki:Titleprotectedwarning)

In my eyes the problem is primarily caused by the extremely long notice about creating a new page that is shown before that one (https://cs.wikipedia.org/wiki/MediaWiki:Newarticletext). It's very long compared to the default text (https://cs.wikipedia.org/wiki/MediaWiki:Newarticletext/cs) and even compared to English Wikipedia, which is usually very verbose (https://en.wikipedia.org/wiki/MediaWiki:Newarticletext).

Maybe we should change the order or these notices to improve this.

But also, please consider rephrasing or shortening that notice. I don't speak Czech but I had a look at it with automated translation:

  • The last bullet point (saying that article might have been deleted) is probably useless because this information is also provided by the other notices (in both editors)
  • The second-to-last (about database delay) is probably also not helpful, as I don't think such issues are common today (it was added in 2005 with an edit summary referring to "current database problems": https://cs.wikipedia.org/w/index.php?title=MediaWiki:Newarticletext&diff=prev&oldid=89842)

I get it, but how can it be relevant to the fact I can't type in that editor?

Because the page is protected, we do the same for any protected page, and so does the wikitext editor (the effect is a bit weird here since the page is empty).