-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the 404 component #305
Conversation
Deploy preview for donut-frontend-r ready! Built with commit 3c96599 |
9c48f83
to
acc48be
Compare
@devesh-verma can you take a look once. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -15,6 +16,7 @@ const Router = () => ( | |||
<Route exact path="/pinned-posts" component={PinnedPosts} /> | |||
<Route exact path="/profile" component={Profile} /> | |||
<Route exact path="/organization" component={Organization} /> | |||
<Route component={NotFound} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path is missing for not found route that is 404
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sir no specific path is required there. The component 'NotFound' will render at every path not already specified above it. Therefore showing a 404 error for every route which is not specified in the app, and the user tries to access it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so usually, I have seen route as * for 404, please let me know if its not needed so that I can merge.
@elit-altum can please resolve the merge conflict and update the PR. |
085d3ac
to
d331739
Compare
47d01c1
to
f7cce11
Compare
Created a newly designed 404 page for handling unspecified routes.
Fixes #275