Skip to content

Commit 477bddf

Browse files
committed
fix: add basePath on footer-list
1 parent 5d4c307 commit 477bddf

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

apps/web/app/components/FooterPageSection.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { useI18n } from '#i18n'
33
import { useColor, useTypography } from '@vuejs-jp/composable'
44
import { useLocaleCurrent } from '~/composables/useLocaleCurrent'
5-
5+
import { useWithBase } from '#imports'
66
//#region types
77
type LinkList = {
88
href: string
@@ -15,6 +15,7 @@ const { t } = useI18n()
1515
const { path: localePath } = useLocaleCurrent()
1616
const { color } = useColor()
1717
const { fontSize } = useTypography()
18+
const withBase = useWithBase()
1819
//#endregion
1920
2021
//#region private variables
@@ -38,19 +39,19 @@ const snsLinkList: LinkList[] = [
3839
]
3940
const internalLinkList: LinkList[] = [
4041
{
41-
href: '/events',
42+
href: withBase('/events'),
4243
text: 'related_events.title',
4344
},
4445
{
45-
href: '/privacy',
46+
href: withBase('/privacy'),
4647
text: 'privacy.title',
4748
},
4849
{
49-
href: '/code-of-conduct',
50+
href: withBase('/code-of-conduct'),
5051
text: 'code_of_conduct.title',
5152
},
5253
{
53-
href: '/tokusho',
54+
href: withBase('/tokusho'),
5455
text: 'tokusho.title',
5556
},
5657
]

0 commit comments

Comments
 (0)