diff --git a/client/src/router/index.js b/client/src/router/index.js index a926050..408b124 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -8,7 +8,7 @@ import Home from '@/views/Home.vue' import Quiz from '@/views/quiz/Index.vue' import QuizPage from '@/views/quiz/Quiz.vue' import Question from '@/views/quiz/Question.vue' -import Error404 from '@/views/errors/Error404.vue' +import NotFound from '@/views/errors/NotFound.vue' import Refused from '@/views/errors/Refused.vue' import Results from '@/views/results/Index.vue' import ResultsPage from '@/views/results/Results.vue' @@ -174,22 +174,22 @@ const routes = [ ] }, { - path: '/404', - name: 'Error404', - component: Error404, + path: '/err_notfound', + name: 'NotFound', + component: NotFound, meta: { index: -1, - title: 'Error 404: Not Found', + title: 'Error: Not Found', svgPath: mdiWeb } }, { path: "/:catchAll(.*)", name: 'NotFound', - redirect: '/404', + redirect: '/err_notfound', meta: { index: -1, - title: 'Error 404: Not Found', + title: 'Error: Not Found', svgPath: mdiWeb } }, diff --git a/client/src/views/errors/Error404.vue b/client/src/views/errors/NotFound.vue similarity index 94% rename from client/src/views/errors/Error404.vue rename to client/src/views/errors/NotFound.vue index 040bad0..42e9b1c 100644 --- a/client/src/views/errors/Error404.vue +++ b/client/src/views/errors/NotFound.vue @@ -3,7 +3,7 @@ import Header from '@/components/Header.vue' import TextFrame from '@/components/TextFrame.vue' export default { - name: 'Error404', + name: 'NotFound', components: { Content, Header, @@ -15,7 +15,7 @@
- 404: Not Found + Error: Not Found
diff --git a/client/src/views/quiz/Question.vue b/client/src/views/quiz/Question.vue index 1585d55..d60b1e7 100644 --- a/client/src/views/quiz/Question.vue +++ b/client/src/views/quiz/Question.vue @@ -39,7 +39,7 @@ () => this.$route.params, (toParams, previousParams) => { if (this.$route.name == 'Question') { if (toParams.id >= this.questionStore.questions.length || this.id < 0) { - this.$router.push('/404') + this.$router.push('/err_notfound') } else { if ( toParams.id == 0 ) { this.enableBack = false @@ -57,7 +57,7 @@ this.$watch( () => this.appStore.hasData, (newValue) => { if (this.id >= this.questionStore.questions.length || this.id < 0) { - this.$router.push('/404') + this.$router.push('/err_notfound') } else { this.answersStore.makeArray(this.id, this.questionStore.questions[this.id].select) if ( this.id == this.questionStore.questions.length -1 ) {