mchandleraz / realworld-vue

Thinkster RealWorld Vue.js implementation
https://realworld.io
116 stars 27 forks source link

Add redirection to home view if user types wrong url. #3

Closed michalzagrodzki closed 7 years ago

michalzagrodzki commented 7 years ago

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

StevenYuysy commented 7 years ago

Why not just display 404 page instead of redirecting to home page?

michalzagrodzki commented 7 years ago

@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.

StevenYuysy commented 7 years ago

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