From 295349655c4de38e37d746c1fda2dc0f23a6153e Mon Sep 17 00:00:00 2001 From: Guanzhou Song Date: Wed, 29 Apr 2026 11:00:00 -0400 Subject: [PATCH] Fix 404 on blog navigation links to flat-export Next.js pages The Jekyll blog layout generated nav links with trailing slashes (/kubernetes-operator/, /docs/, /packages/), but the Next.js static export produces flat HTML files (/kubernetes-operator.html, /docs.html, /packages.html). GitHub Pages serves those at /kubernetes-operator, /docs, /packages with no trailing slash; the trailing-slash variants look for an index.html that does not exist and return 404. Drop the trailing slash from the K8s Operator, Docs, and Download hrefs in blogs/_layouts/default.html so the blog navigation matches the routes the Next.js export actually serves. Home (/) and Blogs (/blogs/) keep their trailing slash because they resolve to real index.html files. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Guanzhou Song --- blogs/_layouts/default.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blogs/_layouts/default.html b/blogs/_layouts/default.html index 304f61d..5d49624 100644 --- a/blogs/_layouts/default.html +++ b/blogs/_layouts/default.html @@ -15,9 +15,9 @@ {% endif %} {% assign home_href = site_root | append: '/' | replace: '//', '/' %} - {% assign docs_href = site_root | append: '/docs/' | replace: '//', '/' %} - {% assign packages_href = site_root | append: '/packages/' | replace: '//', '/' %} - {% assign operator_href = site_root | append: '/kubernetes-operator/' | replace: '//', '/' %} + {% assign docs_href = site_root | append: '/docs' | replace: '//', '/' %} + {% assign packages_href = site_root | append: '/packages' | replace: '//', '/' %} + {% assign operator_href = site_root | append: '/kubernetes-operator' | replace: '//', '/' %} {% assign logo_href = site_root | append: '/images/DocumentDB Logo - background removed.png' | replace: '//', '/' %} {% assign blogs_href = site.baseurl | append: '/' | replace: '//', '/' %}