Skip to content

Commit

Permalink
feat: 🐛 Fix routing
Browse files Browse the repository at this point in the history
  • Loading branch information
NadeigeC committed May 30, 2023
1 parent 72bba23 commit 96b56c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions frontend/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { clearLocalStorage } from '@/utils/storage-utils.js'
import { useResultStore } from '@/stores/result.js'
import { useStepsStore } from '@/stores/steps.js'

const HomePage = () => import('@/views/HomePage.vue')
const StartPage = () => import('@/views/StartPage.vue')
const Instructions = () => import('@/views/Instructions.vue')
const Result = () => import('@/views/Result.vue')
Expand All @@ -22,6 +23,15 @@ const ExtractMag = () => import('@/views/GuideFactice/ExtractMag.vue')
const SelectAmmo = () => import('@/views/GuideFactice/SelectAmmo.vue')

const routes = [
{
path: '/',
name: 'HomePage',
component: HomePage,
meta: {
displayHeader: true,
},
beforeEnter: clearLocalStorage,
},
{
path: '/accueil',
name: 'StartPage',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</div>
<router-link
v-slot="{navigate}"
:to="{name:'Start'}"
:to="{name:'StartPage'}"
>
<DsfrButton
id="agree-button"
Expand Down

0 comments on commit 96b56c2

Please sign in to comment.