Skip to content

Commit 0f38eb4

Browse files
authoredJul 31, 2023
fix: createContentLoader generates invalid url when base is set (#2714)
1 parent 7778187 commit 0f38eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/node/contentLoader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function createContentLoader<T = ContentData[]>(
140140
: { excerpt: renderExcerpt }
141141
)
142142
const url =
143-
'/' +
143+
config.site.base +
144144
normalizePath(path.relative(config.srcDir, file))
145145
.replace(/(^|\/)index\.md$/, '$1')
146146
.replace(/\.md$/, config.cleanUrls ? '' : '.html')

0 commit comments

Comments
 (0)
Please sign in to comment.