From 1dc9c82cb3eddf77b2ceef78e2a56064ae707988 Mon Sep 17 00:00:00 2001 From: Jonathon Wright Date: Wed, 17 Jun 2026 20:48:06 +1000 Subject: [PATCH] =?UTF-8?q?Links:=20trailing-slash=20internal=20URLs=20(no?= =?UTF-8?q?=20dir-redirect=20=E2=86=92=20kills=20the=20:8080/cached-301=20?= =?UTF-8?q?issue)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astro.config.mjs | 3 +++ src/components/Nav.astro | 4 ++-- src/components/PostList.astro | 2 +- src/components/ProjectCard.astro | 2 +- src/pages/blog/[slug].astro | 6 +++--- src/pages/blog/index.astro | 2 +- src/pages/blog/tags/[tag].astro | 4 ++-- src/pages/index.astro | 2 +- src/pages/projects/[slug].astro | 4 ++-- 9 files changed, 16 insertions(+), 13 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 5836e36..bf60e00 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -7,6 +7,9 @@ import tailwindcss from "@tailwindcss/vite"; // https://astro.build/config export default defineConfig({ site: "https://www.bztmon.com", + // Always emit/expect trailing slashes so internal links hit the final URL directly + // (no nginx dir-redirect → no stray :8080 / cached 301s). + trailingSlash: "always", integrations: [sitemap()], build: { // Keep CSS in external files (no inlined