Azordev / frontend-template

https://azordev-frontend-template.onrender.com
Apache License 2.0
0 stars 0 forks source link

Add 50X error page #5

Closed heliomar-pena closed 2 years ago

heliomar-pena commented 2 years ago

Explication

Add the view for the 50X error. The user will be redirected to this view when requesting an error occurs

Checklist

arodriguezl9302 commented 2 years ago

regardless of the effort estimate I want to be assigned to this task

heliomar-pena commented 2 years ago

You're already assigned @arodriguezl9302 . Thanks for the help!

arodriguezl9302 commented 2 years ago

One question, I added the 404 page, is that when the route does not exist, it redirects to it, but this 50x error, when does it redirect to this url?

Israel-Laguan commented 2 years ago

One question, I added the 404 page, is that when the route does not exist, it redirects to it, but this 50x error, when does it redirect to this url?

The idea is to send the user programmatically, for example in a trycatch when a user steps in a fatal error, instead of just crash the app, we can send the user to this page, for example using:

history.push(/internal-error)

arodriguezl9302 commented 2 years ago

yes i did the same, tanks