Page MenuHomePhabricator

Saving a broken wikilink in Wikisource Index page will blank the Index page instead
Open, Needs TriagePublicBUG REPORT

Assigned To
None
Authored By
Bennylin
Dec 8 2025, 6:54 PM
Referenced Files
Restricted File
Jan 4 2026, 2:38 PM
F70944356: image.png
Dec 8 2025, 6:54 PM

Description

Steps to replicate the issue (include links if applicable):

image.png (1,069×533 px, 47 KB)

the index page was blanked (Preview mode)

What happens?:

I accidentally save a broken wikilink like "[[]test]" and instead in the history page I was blanking the index page. There were no warning, and no way of knowing (beside checking line-by-line) what caused the bug.

What should have happened instead?:

Save normally, don't blank the page when there's a typo on the wikilink

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

(you don't need to use the example index, I believe any index in any Wikisource will do)

Today I tried in en.wikisource, put the broken wikilink in an index, and preview it, this is what I got

{F71437602}

And everything in the index form was deleted in the preview

What is the expected output in this context? This feels like expected behavior (kinda/sorta)

Saving normally isn't really an option since this error is occurring at the parser layer that ProofreadPage doesn't have too much visibility into. (ProofreadPage is basically passing in {{MediaWiki:ProofreadPageIndex template|xxx=[[]test]|abc=123}} and then the parser rightly is freaking out about the output.)