Skip to content

Commit ddaa1c6

Browse files
authored
Merge pull request #395 from vuejs-jp/fix/add-baseurl
WIP: fix: add basePath on Header Logo Link
2 parents 984224f + db535ce commit ddaa1c6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/ui/components/common/Header.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ withDefaults(defineProps<HeaderProps>(), {
1111
})
1212
1313
const { headerRef } = useHeader()
14+
const siteRoot = process.env.NODE_ENV === 'production' ? '/2024/' : '/'
1415
</script>
1516

1617
<template>
1718
<header ref="headerRef" :style="{ top }">
1819
<div class="header-root">
19-
<a class="link" href="/" aria-label="Vue Fes Japan 2024">
20+
<a class="link" :href="siteRoot" aria-label="Vue Fes Japan 2024">
2021
<Logo class="logo" color="vue-blue" />
2122
</a>
2223
<slot />

packages/ui/components/common/SpHeader.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ withDefaults(defineProps<HeaderProps>(), {
1111
})
1212
1313
const { headerRef } = useHeader()
14+
const siteRoot = process.env.NODE_ENV === 'production' ? '/2024/' : '/'
1415
</script>
1516

1617
<template>
1718
<header ref="headerRef" :style="{ top }">
1819
<div class="header-root">
19-
<a class="link" href="/" aria-label="Vue Fes Japan 2024">
20+
<a class="link" :href="siteRoot" aria-label="Vue Fes Japan 2024">
2021
<Logo class="logo" color="vue-blue" />
2122
</a>
2223
<slot />

0 commit comments

Comments
 (0)