Skip to content

Redirect to topic list on successful topic form submission

Ezekiel Kigbo requested to merge ek-clear-topics-form-on-submit into master

What does this MR do and why?

Returns to the topic list on successful submission of the new topic form. This MR ensures we redirect to the topic list after successful submission instead of redirecting to the edit form.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After After - with errors
new-topic-form-before new-topic-form-after-redirect new-topic-form-with-errors

How to set up and validate locally

  1. Navigate to /admin/topics/ in your gdk
  2. Click the "New Topic" button
  3. Fill out slug and title fields (description is optional)
  4. Submit, the form will submit and redirect to the topic list

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Ezekiel Kigbo

Merge request reports