You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
Invalid articles currently go to a blank page, rather than the correct error page. The 400 or 404 errors are sent from the server, they're just not dealt with on the client-side. I don't have the time to fix it up and test it now but I think the below is a start, in articles.client.routes.js (or perhaps it should go into the controller although I don't think the controller is ever reached if there's an error). Paging @mleanos
We're already returning a 404 from the server when an Article isn't found. So we just need to add a 404 handler here to send the user to a 404 view. So this should only involve the client-side addition of $http interceptors for 400 & 404.
I don't know what happened to this PR: #1052. But it looks like it will solve this issue.
Invalid articles currently go to a blank page, rather than the correct error page. The 400 or 404 errors are sent from the server, they're just not dealt with on the client-side. I don't have the time to fix it up and test it now but I think the below is a start, in
articles.client.routes.js
(or perhaps it should go into the controller although I don't think the controller is ever reached if there's an error). Paging @mleanosThe text was updated successfully, but these errors were encountered: