**Describe the bug** When a module is uploaded, the user is not redirected to the dashboard but a JSON response is displayed. **To Reproduce** Steps to reproduce the behavior: Upload a module and see the JSON response **Expected behavior** The user needs to be redirected to the dashboard.