Fix sitemap URLs (#3220)

This commit is contained in:
Greg Bergé
2025-05-08 08:54:28 +02:00
committed by GitHub
parent 373f18f451
commit e6ddc0f07f
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"gitbook-v2": patch
"gitbook": patch
---
Fix URL in sitemap
+5
View File
@@ -93,6 +93,11 @@ export function createLinker(
},
toAbsoluteURL(absolutePath: string): string {
// If the path is already a full URL, we return it as is.
if (URL.canParse(absolutePath)) {
return absolutePath;
}
if (!servedOn.host) {
return absolutePath;
}