Skip to content

Fix wiki form not rendering on validation error

Enrique Alcántara requested to merge 360330-wiki-form-doesnt-render into master

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
Screen_Shot_2022-05-03_at_9.05.04_PM Screen_Shot_2022-05-03_at_8.15.30_PM

How to set up and validate locally

  1. Click "New page" in a Project or Group Wiki.
  2. In the Wiki edit form, enter a page name that is already used by another page. This will cause a validation error.
  3. 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.

Relates to #360330 (closed)

Edited by Enrique Alcántara

Merge request reports