Summary
`apps/admin/src/app/(authenticated)/posts/columns.tsx` had its `postEditHref` helper updated to return `/posts/${id}` (without the `/edit` suffix that the actual route doesn't have). But two other sites still construct the old path manually:
- `apps/admin/src/app/(authenticated)/comments/CommentListClient.tsx:452`
- `apps/admin/src/app/(authenticated)/comments/[id]/page.tsx:178`
Both link to `/posts/${id}/edit`, which 404s.
Fix
Replace both with `postEditHref(id)` import from `../posts/columns` (or extract to a shared route helper). Add a regression test that asserts comments table "Open post" link uses the canonical path.
Related
- This regression was introduced by the same session that fixed `postEditHref` — the rename wasn't propagated.
Summary
`apps/admin/src/app/(authenticated)/posts/columns.tsx` had its `postEditHref` helper updated to return `/posts/${id}` (without the `/edit` suffix that the actual route doesn't have). But two other sites still construct the old path manually:
Both link to `/posts/${id}/edit`, which 404s.
Fix
Replace both with `postEditHref(id)` import from `../posts/columns` (or extract to a shared route helper). Add a regression test that asserts comments table "Open post" link uses the canonical path.
Related