From 0c59ed50a81cc00460946bce334d3eafd2826fb3 Mon Sep 17 00:00:00 2001 From: Juan Eugenio Abadie Date: Tue, 8 May 2018 10:06:01 -0300 Subject: [PATCH] fix: duplicate slash when docs dir is not set (#361) --- lib/default-theme/Page.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/default-theme/Page.vue b/lib/default-theme/Page.vue index ea03b3ff19..36f0538715 100644 --- a/lib/default-theme/Page.vue +++ b/lib/default-theme/Page.vue @@ -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 ) }