Skip to content

REGRESSION: comments table dead-links to deleted /posts/[id]/edit route #504

@tayebmokni

Description

@tayebmokni

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions