diff --git a/theme/src/node/autoFrontmatter/resolveOptions.ts b/theme/src/node/autoFrontmatter/resolveOptions.ts index 1d7477a8..a1814857 100644 --- a/theme/src/node/autoFrontmatter/resolveOptions.ts +++ b/theme/src/node/autoFrontmatter/resolveOptions.ts @@ -104,7 +104,7 @@ export function resolveOptions( const prefix = notesByLocale(locale)?.link || '' const note = findNote(relativePath) return pathJoin( - locale, + prefix.startsWith(locale) ? '/' : locale, prefix, note?.link || getCurrentDirname(note?.dir, relativePath), '/',