Skip to content

Commit cb92c91

Browse files
committed
fix: add basePath on sponsor-button
1 parent 477bddf commit cb92c91

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

apps/web/app/components/SponsorPageSection.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { useI18n } from '#i18n'
3-
import { useLocaleCurrent, useRuntimeConfig } from '#imports'
3+
import { useLocaleCurrent, useRuntimeConfig, useWithBase } from '#imports'
44
import { useColor, useTypography } from '@vuejs-jp/composable'
55
import { useTranslation } from '@/composables/useTranslation'
66
import SponsorList from './sponsor/SponsorList.vue'
@@ -22,6 +22,8 @@ const { translate } = useTranslation()
2222
2323
const currentLocale = useLocaleCurrent().locale
2424
25+
const withBase = useWithBase()
26+
2527
// const periodStart = {
2628
// prefixYear: t('prefix_year'),
2729
// date: t('sponsor.start_date'),
@@ -169,10 +171,7 @@ const personalSponsorInfo: PersonalSponsorInfo = {
169171
<SponsorList v-bind="simultaneousInterpretationSponsors" />
170172
<SponsorList v-bind="childcareSponsors" />
171173
</div>
172-
<SponsorList
173-
v-if="handsonSponsors.list.length !== 0"
174-
v-bind="handsonSponsors"
175-
/>
174+
<SponsorList v-if="handsonSponsors.list.length !== 0" v-bind="handsonSponsors" />
176175
<SponsorList v-bind="mediaSponsors" />
177176
<SponsorList v-bind="toolSponsors" />
178177
<SponsorList
@@ -187,7 +186,7 @@ const personalSponsorInfo: PersonalSponsorInfo = {
187186
<div class="sponsor-buttons">
188187
<VFLinkButton
189188
class="sponsor-button"
190-
:href="`${currentLocale === 'ja' ? '/' : `/${currentLocale}/`}jobboard`"
189+
:href="withBase(`${currentLocale === 'ja' ? '/' : `/${currentLocale}/`}jobboard`)"
191190
background-color="vue-green/200"
192191
color="white"
193192
>

0 commit comments

Comments
 (0)