Skip to content

Commit

Permalink
Avoid empty paths resulting in different url values when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Mar 4, 2024
1 parent d6b6605 commit 6eee4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/EntryFilenames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function entryUrl(type: Type, meta: EntryUrlMeta) {
.concat(
meta.parentPaths
.concat(meta.path)
.filter(segment => segment !== 'index')
.filter(segment => segment !== 'index' && segment !== '')
)
.join('/')
)
Expand Down

0 comments on commit 6eee4c0

Please sign in to comment.