feat: 详情页 URL 1:1 — /reunimos 等根路径 rewrite 到 /work/[slug]

This commit is contained in:
2026-09-01 20:35:56 +08:00
parent a844b26250
commit 13e2a7a674
2 changed files with 26 additions and 4 deletions
+4 -4
View File
@@ -195,10 +195,10 @@ function WorkCard({ item, ratio }: { item: WorkItem; ratio?: string }) {
);
return;
}
const detail = item.href.startsWith("/2026")
? item.href
: `/work${item.href}`;
startNavigation(detail);
// Detail pages are rewritten to root paths (/reunimos …),
// 1:1 with the original URLs; only the passcode scope keeps
// its own route.
startNavigation(item.href);
}}
>
{body}