Fix wiki form not rendering on validation error
What does this MR do and why?
Fixes a bug where the form to edit a Wiki page disappears after receiving a server-side error while creating a new Wiki page.
This problem happens because the server-side route doesn’t load a JavaScript bundle with the Wiki form component when an error happens. The fix is always loading the wiki form when the entry point is found.
Screenshots or screen recordings
header | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Click "New page" in a Project or Group Wiki.
- In the Wiki edit form, enter a page name that is already used by another page. This will cause a validation error.
- When you submit the changes, you should see a validation error and the Wiki form.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Relates to #360330 (closed)
Edited by Enrique Alcántara