Skip to content

fix(web): 404 pages keep the site's default title #877

Closed

Description

@JOY

Found in a live audit of rate.vn (round 4). In a browser, these pages return 404 but keep a wrong title, so the tab, history and screen readers do not say the page was not found (WCAG 2.2 SC 2.4.2):

  • Unknown paths such as /khong-ton-tai-abc or /leaderboard/x ([locale]/[...rest]) show the site default, "Rate.vn - Giá thật, thông số và đánh giá đã lọc".
  • /compare/a-vs-b shows "Đối đầu 1v1 | Rate.vn".

Missing products (/smartphones|laptops|earbuds/<unknown>) and merchants are already titled "Không tìm thấy sản phẩm/gian hàng | Rate.vn". Next streams page metadata after load, so a plain curl always shows the default title there; that is expected.

Note: generateMetadata in [locale]/not-found.tsx is not usable here. It made notFound() from pages answer 500 in a local build.

Acceptance: unknown paths and missing comparisons are titled "Không tìm thấy trang | Rate.vn" (localized). E2E covers vi and en.

Activity

  1. added
    bugSomething isn't working
    agent:brandClaimed by Agent: Brand
    status:in-progressTask currently claimed and being worked on by an Agent
    status:in-reviewTask completed and waiting for review / PR merge
    and removed
    status:in-progressTask currently claimed and being worked on by an Agent
    on Oct 24, 2026
  2. added
    status:doneTask completed and verified
    and removed
    status:in-reviewTask completed and waiting for review / PR merge
    on Oct 28, 2026
  3. self-assigned this
    on Oct 28, 2026
  4. JOY commented on Oct 28, 2026

    @JOY
    ContributorAuthor

    [Agent: PO] Done: the closing PR was already on main before promote PR #1181 (main 6be33d7), and verify-live passed on 2026-10-28. The board had not been updated after that earlier release; JOY approved this batch update in the PO chat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent:brandClaimed by Agent: Brandarea:frontendFrontend / Next.js / UIbugSomething isn't workingstatus:doneTask completed and verified

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions