Skip to content

Redirect back to edit project path

Ezekiel Kigbo requested to merge 345131-minor-fix-post-transfer-redirect into master

What does this MR do and why?

Minor follow up to !72361 (merged) ensures that we redirect back to the edit project page after successfully transferring a project to a new namespace. The /transfer route only responds to a put request, so redirecting there does not load the javascript for the page correctly.

Previously this would occur with a client side redirect coming from the transfer.js.haml file, but we can now perform this directly in the projects controller.

Screenshots or screen recordings

Before After
before after

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

How to set up and validate locally

  1. Navigate to an existing project's settings page, for example http://<gdk>/flightjs/flight/edit
  2. Scroll to the bottom and expand the advanced section
  3. Under Transfer project select a new namespace from the dropdown
  4. Click the transfer project button then confirm the project name
  5. You will be redirect to the edit project path, using the new namespace

MR acceptance checklist

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

Related to #345131 (closed)

Merge request reports

Loading