[Bug] Direct requestless merge action redirects to source pkgbase

  • I have described the bug in complete detail in the Description section.
  • I have specified steps in the Reproduction section.
  • I have included the versions which are affected in the Version(s) section.

Description

When merging a package via the Merge Package link on /packages/{name}, we get redirected to /packages/{name} after submitting the merge form, leading us into a 404 - Not Found. We deleted {name} during the merge; we should get redirected to the target's page instead.

Reproduction

  1. Browse to any package page.
  2. Click Merge Package.
  3. Fill out Merge into with a valid destination package.
  4. Check the confirmation box.
  5. Submit the request.
  6. Get redirected to a 404 - Not Found at the URL we clicked Merge Package on.

Version(s)

83dc26cc

Edited by Kevin Morris