Skip to content

Commit 5310054

Browse files
committed
fix($theme-default): fix editLink for repos hosted on gitlab.com
1 parent 8f42f56 commit 5310054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/@vuepress/theme-default/components/PageEdit.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default {
9797
: `https://github.com/${docsRepo}`
9898
return (
9999
base.replace(endingSlashRE, '')
100-
+ `/edit`
100+
+ (/gitlab.com/.test(repo) ? '/-/edit/' : '/edit')
101101
+ `/${docsBranch}/`
102102
+ (docsDir ? docsDir.replace(endingSlashRE, '') + '/' : '')
103103
+ path

0 commit comments

Comments
 (0)