docs: point home modality chips at the sectioned tool pages (#485)

The tool reference moved to /tools/<section>/<toolId>, but the five modality chips on the docs home still linked to the old flat paths. A full page load survives via the Cloudflare _redirects shim, but VitePress client-side navigation bypasses it and lands on the 404 page.

A dist-wide internal link check confirms these five were the only remaining stale links in the built site. The homepage e2e spec now pins all five chip hrefs and click-navigates one chip client-side, which is exactly the path that broke.
This commit is contained in:
SnapOtter
2026-07-11 12:39:26 +08:00
committed by GitHub
parent 4426c733e7
commit 4a5a6718e6
2 changed files with 23 additions and 5 deletions
+5 -5
View File
@@ -18,11 +18,11 @@ const entLinks = [
{ label: "Compliance & SBOM", href: "/guide/security#compliance-artifacts" },
];
const modalities = [
{ label: "Image", count: 64, href: "/tools/resize" },
{ label: "Video", count: 29, href: "/tools/convert-video" },
{ label: "Audio", count: 17, href: "/tools/convert-audio" },
{ label: "PDF", count: 37, href: "/tools/merge-pdf" },
{ label: "Files", count: 10, href: "/tools/chart-maker" },
{ label: "Image", count: 64, href: "/tools/image/resize" },
{ label: "Video", count: 29, href: "/tools/video/convert-video" },
{ label: "Audio", count: 17, href: "/tools/audio/convert-audio" },
{ label: "PDF", count: 37, href: "/tools/pdf/merge-pdf" },
{ label: "Files", count: 10, href: "/tools/files/chart-maker" },
];
const shared = [
{ label: "REST API", sub: "Keys, endpoints & OpenAPI", href: "/api/rest" },