Skip to content

Commit 0e6a1a0

Browse files
committed
correctly form site repo url from subdir
1 parent c1bd54c commit 0e6a1a0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/project/types/book/book-config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,7 @@ function siteRepoUrl(site: Metadata) {
239239
const branch = site[kSiteRepoBranch] || "main";
240240
if (site[kSiteRepoSubdir]) {
241241
const subdir = ensureTrailingSlash(site[kSiteRepoSubdir] as string);
242-
return pathWithForwardSlashes(
243-
join(repoUrl, `tree/${branch}/${subdir}`),
244-
);
242+
return `${ensureTrailingSlash(repoUrl)}tree/${branch}/${subdir}`;
245243
} else {
246244
return repoUrl;
247245
}

0 commit comments

Comments
 (0)