Closed mrchrisadams closed 5 years ago
Right now, hitting /greencheck with no slash at the end triggers a 404, giving a traceback like so:
/greencheck
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /greencheck
This fills up our error catcher, so we want to stop this happening.
/greencheck/
We could add a redirect route. This would stop triggering the 404.
https://github.com/thegreenwebfoundation/thegreenwebfoundation/blob/master/apps/api/src/Controller/DefaultController.php#L98
It's not the only solution, but would be a good first issue.
Right now, hitting
/greencheck
with no slash at the end triggers a 404, giving a traceback like so:This fills up our error catcher, so we want to stop this happening.
one solution - add a redirect url for
/greencheck
to/greencheck/
We could add a redirect route. This would stop triggering the 404.
https://github.com/thegreenwebfoundation/thegreenwebfoundation/blob/master/apps/api/src/Controller/DefaultController.php#L98
It's not the only solution, but would be a good first issue.