Skip to content

Commit

Permalink
docs: Fixed 404 issue with chart redirects on the overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
yuexiaoliang committed Aug 22, 2024
1 parent 3017c95 commit 6106476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/chart-preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function setChartDark() {
const router = useRouter()
function routerTo() {
router.go(`/${lang.value}/charts/${kebabCase(props.name)}`)
router.go(`${lang.value === 'en' ? '' : `/${lang.value}`}/charts/${kebabCase(props.name)}`)
}
</script>

Expand Down

0 comments on commit 6106476

Please sign in to comment.