Make preload work with VE
VE preloads wikitext in its own "special" way (see https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/378343/) and to make NamespacePreload work with it we probably have to comply. Patching VE to respect EditPage hooks is… impossible.
The only solution I can think of right now would be to:
- Intercept the web request somewhere early in the pipeline.
- Figure out whether this is a call to edit with VE (which is complicated by itself) on a non-existent page
- If so, redirect the user appending the
preload
parameter to the URL.
Note: pre-save transforms would not work. Needs investigating.