Skip to content

Commit

Permalink
fix: duplicate slash when docs dir is not set (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
whoan authored and ulivz committed May 8, 2018
1 parent f31953d commit 0c59ed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/default-theme/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export default {
: `https://github.com/${docsRepo}`
return (
base.replace(endingSlashRE, '') +
`/edit/${docsBranch}/` +
docsDir.replace(endingSlashRE, '') +
`/edit/${docsBranch}` +
(docsDir ? '/' + docsDir.replace(endingSlashRE, '') : '') +
path
)
}
Expand Down

0 comments on commit 0c59ed5

Please sign in to comment.