Closed michalzagrodzki closed 7 years ago
Why not just display 404 page instead of redirecting to home page?
@StevenYuysy I followed the instructions provided in FRONTEND_INSTRUCTIONS file in realworld-starter-kit repo. In those instructions there is no mentioning about the 404 page, so I assumed that there will be redirection in case of invalid url.
Well, since there is no mentioning about the 404 page, I open an issue about this question. https://github.com/gothinkster/realworld-starter-kit/issues/9
Add path in router for redirecting invalid routes to home view. Used naming convention for routes.
Similar example: https://github.com/vuejs/vue-router/blob/dev/examples/redirect/app.js