Page MenuHomePhabricator

wgAction = edit with source editor if url parameter action=edit is passed (redlinks)
Open, Needs TriagePublic

Description

According to T167880#3351108 wgAction is purposefully left as view in VisualEditor edit mode. Following a redlink in a wiki however, we get edit instead.

Might be related to the explicit action=edit being passed in the url parameter e.g https://pt.wikipedia.org/w/index.php?title=NON_EXISTENT_PAGE&action=edit&redlink=1

This creates the exact situation of breaking expectations on existing gadgets, with the added confusion that the behavior is inconsistent depending if the user came to the page from a redlink or another source.

Related Objects