From 3d55e9e29f03d855ef46a88a5604aea0d1af8cf6 Mon Sep 17 00:00:00 2001 From: John Cashman <153507755+john-gitbook@users.noreply.github.com> Date: Mon, 8 Dec 2025 17:17:05 +0000 Subject: [PATCH] Fix priority assignment in sitemap generation --- packages/gitbook/src/routes/sitemap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gitbook/src/routes/sitemap.ts b/packages/gitbook/src/routes/sitemap.ts index 4075b5fbf2..1b4a1107de 100644 --- a/packages/gitbook/src/routes/sitemap.ts +++ b/packages/gitbook/src/routes/sitemap.ts @@ -61,13 +61,13 @@ export function servePagesSitemap(context: GitBookSiteContext) { const lastModified = page.updatedAt || page.createdAt; const url: { loc: string; priority: number; lastmod?: string } = { - priority: normalizedPriority, loc: linker.toAbsoluteURL( linker.toPathForPage({ pages: context.revision.pages, page, }) ), + priority: normalizedPriority, }; if (lastModified) {