What is the problem?
When you edit a page in the Category namespace, the Realtime Preview does not show the pages or subcategories in the category. See first screenshot.
However, after you click "Show preview" (to show the normal preview), the Realtime Preview does show the pages and subcategories.
I guess we want them both to be consistent.
Steps to reproduce problem
- Login to https://commons.wikimedia.org and enable Realtime Preview
- Go to https://commons.wikimedia.org/w/index.php?title=Category:Volvo_PV544&action=edit
- Open Realtime Preview
- Observe in the RTP pane that there is just the infobox
- Click "Show preview"
- Observe in the RTP pane there is also Subcategories, Pages in category and Media in category
Environment
Wiki(s): https://commons.wikimedia.org MediaWiki 1.39.0-wmf.25 (cec9041) 16:16, 16 August 2022.
Editor: WikiEditor 0.5.3 (ae3b860) 06:27, 15 August 2022.
Screenshots
RTP without normal preview, without pages and subcategories (action=edit):
RTP with normal preview, showing pages and subcategories (action=submit):