Description
Steps to reproduce:
- Go to the function edit page using wiki/zid and ?action=edit : https://wikifunctions.beta.wmflabs.org/wiki/Z10014?action=edit
- This is the correct page, it's fully editable
- Go to the edit page using view/lang/zid and ?action=edit: https://wikifunctions.beta.wmflabs.org/view/en/Z10014?action=edit
- Vue reads action=edit and sets up the edit page
- However, PHP sets viewmode=true,
- so the whole document around the vue app is set as a view page, and
- the parts of the vue app that look at the viewmode variable, are rendered as view
- in yellow: parts in edit mode
- in pink: parts in view mode
Expected behavior (Acceptance criteria):
- View page should be correctly and fully rendered if ?action=edit in any of the available uris
Devices and Design (URLs or screenshots, if applicable):
- Desktop: ...
- Small screens/mobile: ...
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist