Skip to content

Commit 0c59ed5

Browse files
whoanulivz
authored andcommitted
fix: duplicate slash when docs dir is not set (#361)
1 parent f31953d commit 0c59ed5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/default-theme/Page.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export default {
7676
: `https://github.com/${docsRepo}`
7777
return (
7878
base.replace(endingSlashRE, '') +
79-
`/edit/${docsBranch}/` +
80-
docsDir.replace(endingSlashRE, '') +
79+
`/edit/${docsBranch}` +
80+
(docsDir ? '/' + docsDir.replace(endingSlashRE, '') : '') +
8181
path
8282
)
8383
}

0 commit comments

Comments
 (0)