feat: 详情页 URL 1:1 — /reunimos 等根路径 rewrite 到 /work/[slug]
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user