diff --git a/src/router/index.js b/src/router/index.js index 1f662b2..0a2d197 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3,14 +3,11 @@ import { createRouter, createWebHistory } from 'vue-router' import homeView from '../views/HomePage.vue' import galleryView from '../views/GalleryPage.vue' import socialView from '../views/SocialsPage.vue' +import notFoundPage from '../views/404Page.vue' const routes = [ { path: '/', - redirect: '/home' - }, - { - path: '/home', name: 'home', component: homeView }, @@ -23,6 +20,10 @@ const routes = [ path: '/socials', name: 'socials', component: socialView + }, + { + path: '/:pathMatch(.*)', + component: notFoundPage } ] diff --git a/src/views/404Page.vue b/src/views/404Page.vue index e5e6a79..4bb3101 100644 --- a/src/views/404Page.vue +++ b/src/views/404Page.vue @@ -1,3 +1,37 @@ - - \ No newline at end of file +
This page has not been found,