Steps to reproduce:
- Enable Visual editor in Preferences
- Enable New wikitext mode in Beta features
- Click on a "red link" to any page that the user does not have permission to create because they are not an admin (eg https://en.wikipedia.org/wiki/MediaWiki:Gadget-XFDcloser-core?action=edit)
Expected result:
Similar to https://en.wikipedia.org/w/index.php?title=Add_content&action=edit&redlink=1, with at least an edit notice that the page is protected from creation
Actual result:
Normal-looking edit window appears, and the only notice is an edit notice is the standard notice to admins about editing in the mediawiki namespace