Skip to content

Commit

Permalink
Fix double base in URL
Browse files Browse the repository at this point in the history
Changed since Vitepress rc.4
  • Loading branch information
chgeo committed Aug 10, 2023
1 parent d656155 commit 98e4566
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .vitepress/theme/components/indexFilter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { base, themeConfig: { sidebar }} = global.VITEPRESS_CONFIG.site
import { join } from 'node:path'
const { themeConfig: { sidebar }} = global.VITEPRESS_CONFIG.site

export default (pages, basePath) => {
let items = findInItems(basePath, sidebar) || []
Expand All @@ -20,7 +19,7 @@ export default (pages, basePath) => {
.map(p => {
// this data is inlined in each index page, so sparsely construct the final object
return {
url : join(base, p.url),
url: p.url,
title: p.title,
frontmatter: {
synopsis: p.frontmatter.synopsis
Expand Down

0 comments on commit 98e4566

Please sign in to comment.