404 when redirecting on error doing an import

Doing the pre-checks the redirect with the warning flash seems to be wrong and a 404 page is displayed.

In order to replicate:

  1. New Project
  2. Choose a name (use one already taken)
  3. Add an import file
  4. 404 is displayed