Open Midnighter opened 3 years ago
Who: As a user What: I would like to know when I'm on a wrong URL path Why: So that I can return to a previous page
Any unrecognized path should lead to the 404 page.
In src/client/App.js, in the react-router Switch, we should place last a route matching any path and leading to the 404 component:
src/client/App.js
Switch
<Route path="/"> <NotFound /> </Route>
User story
Who: As a user What: I would like to know when I'm on a wrong URL path Why: So that I can return to a previous page
Acceptance criteria:
Any unrecognized path should lead to the 404 page.
Implementation
In
src/client/App.js
, in the react-routerSwitch
, we should place last a route matching any path and leading to the 404 component: