Page MenuHomePhabricator

TemplateSandbox should parse page previews with the preview setting
Closed, ResolvedPublicBUG REPORT

Description

It seems that TemplateSandbox page preview integration with the WE2017 as implemented in T153367, is parsing pages without specifying preview mode.

https://gerrit.wikimedia.org/g/mediawiki/extensions/TemplateSandbox/+/be07f176bfbb48423d8a0cf51222944de055d337/modules/ext.TemplateSandbox.VisualEditor.js#16

Should be an easy fix: https://www.mediawiki.org/wiki/API:Parsing_wikitext

Event Timeline

Change 893399 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/extensions/TemplateSandbox@master] Set preview and other context variables for VE preview

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

Change 893399 merged by jenkins-bot:

[mediawiki/extensions/TemplateSandbox@master] Set preview and other context variables for VE preview

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

matmarex assigned this task to TheDJ.

Thanks!