Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3_percent_plus
AP4_2
Commits
e42f3a71
Commit
e42f3a71
authored
Aug 09, 2022
by
abergavenny
Browse files
Fixed route navigation
parent
0063ec94
Changes
3
Show whitespace changes
Inline
Side-by-side
client/src/router/index.js
View file @
e42f3a71
...
...
@@ -3,6 +3,7 @@ import { createRouter, createWebHistory } from 'vue-router'
import
LandingView
from
'
@/views/LandingView.vue
'
import
NotFoundView
from
'
@/views/NotFoundView.vue
'
import
ResetPasswordView
from
'
@/views/ResetPasswordView.vue
'
import
PrivacyView
from
'
@/views/PrivacyView.vue
'
import
TermsView
from
'
@/views/TermsView.vue
'
import
{
useSessionStore
}
from
'
@/stores/session
'
...
...
@@ -19,6 +20,11 @@ const router = createRouter({
name
:
'
terms
'
,
component
:
TermsView
},
{
path
:
'
/privacy
'
,
name
:
'
privacy
'
,
component
:
PrivacyView
},
{
path
:
'
/reset-password
'
,
name
:
'
reset
'
,
...
...
client/src/views/PrivacyView.vue
View file @
e42f3a71
...
...
@@ -6,7 +6,7 @@ import SectionTitle from '@/components/SectionTitle.vue'
const
router
=
useRouter
()
function
handleReturn
()
{
router
.
push
({
name
:
'
landing
'
})
router
.
push
({
name
:
'
landing
'
,
query
:
{
tab
:
'
register
'
}
})
}
</
script
>
...
...
client/src/views/TermsView.vue
View file @
e42f3a71
...
...
@@ -6,7 +6,7 @@ import SectionTitle from '@/components/SectionTitle.vue'
const
router
=
useRouter
()
function
handleReturn
()
{
router
.
push
({
name
:
'
landing
'
})
router
.
push
({
name
:
'
landing
'
,
query
:
{
tab
:
'
register
'
}
})
}
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment