From f8c9d28f798b8b6067d85f508eee7ca670121612 Mon Sep 17 00:00:00 2001 From: "Ricardo Q. Bazan" Date: Wed, 20 May 2026 19:15:12 -0500 Subject: [PATCH] fix(docs): use router Link for landing nav to avoid full-page reload Landing links to /docs were plain tags, forcing a full document navigation on click. In production this also incurred a 307 redirect from Cloudflare Assets canonicalizing /docs to /docs/, making the flash visible. Switch internal links to TanStack Router so the transition stays client-side, and add the trailing slash so direct loads skip the 307 as well. Co-Authored-By: Claude Opus 4.7 (1M context) --- docsite/src/components/landing/close.tsx | 7 ++- docsite/src/components/landing/data.ts | 2 +- docsite/src/components/landing/hero.tsx | 7 ++- docsite/src/components/landing/nav.tsx | 80 +++++++++++++++--------- 4 files changed, 60 insertions(+), 36 deletions(-) diff --git a/docsite/src/components/landing/close.tsx b/docsite/src/components/landing/close.tsx index 596e9bb..a06e2da 100644 --- a/docsite/src/components/landing/close.tsx +++ b/docsite/src/components/landing/close.tsx @@ -1,3 +1,4 @@ +import { Link } from "@tanstack/react-router"; import { ArrowRight } from "lucide-react"; import { GithubIcon } from "#src/components/github-icon.tsx"; import { LANDING_META } from "./data.ts"; @@ -33,8 +34,8 @@ export function Close() { @max-[480px]/dirA:flex-col @max-[480px]/dirA:items-stretch @max-[480px]/dirA:gap-2.5 " > - - + - - +