Skip to content

BB-2328: Add new frontend redirects

This PR adds a simple redirection mechanism to direct users to the new frontend until we do the domain migration.

Testing instructions:

  1. Checkout this branch.
  2. Run Ocim.
  3. Go to http://localhost:5000/registration and check that the form is displaying as usual.
  4. Add these to your .env file:
USER_CONSOLE_FRONTEND_URL="https://app.console.opencraft.com"
NEW_USER_CONSOLE_REGISTRATION_ENABLED=True
  1. Open your browser inspetion tool.
  2. Restart Ocim, check that http://localhost:5000/registration redirects to the new frontend.
  3. Check that the redirect was a 302 Found and not a permanent redirect.

Reviewer:

Notes: This is just a temporary change, until Ocim gets migrated to the new domain (manage.opencraft.com). It will be removed soon, so that's why I didn't add any tests.

Merge request reports