We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1bd54c commit 0e6a1a0Copy full SHA for 0e6a1a0
src/project/types/book/book-config.ts
@@ -239,9 +239,7 @@ function siteRepoUrl(site: Metadata) {
239
const branch = site[kSiteRepoBranch] || "main";
240
if (site[kSiteRepoSubdir]) {
241
const subdir = ensureTrailingSlash(site[kSiteRepoSubdir] as string);
242
- return pathWithForwardSlashes(
243
- join(repoUrl, `tree/${branch}/${subdir}`),
244
- );
+ return `${ensureTrailingSlash(repoUrl)}tree/${branch}/${subdir}`;
245
} else {
246
return repoUrl;
247
}
0 commit comments