Skip to content

Careers [slug] page returns 200 + fallback UI for invalid slugs (soft 404) #187

@Jose-Gael-Cruz-Lopez

Description

@Jose-Gael-Cruz-Lopez

Severity: Low
Labels: seo, frontend, P3
Location: frontend/src/app/careers/[slug]/page.tsx:8-12, frontend/src/app/careers/[slug]/ApplyForm.tsx:48

Description

When slug matches no job, the page passes job={null} to ApplyForm, which renders a "not found" message but the HTTP response stays 200 OK. Crawlers treat this as a soft 404 (indexable thin page); there's no canonical 404 behavior.

Steps to reproduce

  1. Visit /careers/does-not-exist.
  2. Response is 200 with a "not found" body instead of a real 404.

Expected vs actual

  • Expected: real 404 (not-found.tsx).
  • Actual: 200 soft-404.

Suggested fix

Call notFound() from next/navigation when job is null.

Acceptance criteria

  • An unknown careers slug returns HTTP 404 and renders the not-found page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low priority / polishfrontendFrontend / UIseoSEO / metadata / crawlability

    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