Skip to content

5.12 - The receipt not-found page nests a second <html> document #158

Description

@determined-001

Complexity: Trivial - 100 Points · type:bug

Milestone: M4 - Merchant surface

Band lever: none

Context
apps/web/app/r/[reference]/page.tsx:36 returns its own <html><body> wrapper
in the catch branch, inside the root layout that already provides them.

Problem
That produces invalid nested-document markup — hydration warnings, and undefined
behaviour across browsers for anything that depends on document structure. Every
other not-found branch in the app returns a bare fragment and renders correctly
inside the root layout, so this is a one-off slip rather than a pattern.

What needs to be done

  1. Return the <main> fragment alone, matching the other not-found branches.
  2. Check the rest of app/ for the same shape (grep -rn "<html" apps/web/app)
    and fix any other occurrence outside the root layout.

Key files

  • apps/web/app/r/[reference]/page.tsx:36
  • apps/web/app/layout.tsx — the root layout that already supplies <html>

Done when

  • The receipt not-found page renders with no nested <html> and no hydration warning.
  • No other page outside the root layout emits <html>.

Tracked in ISSUES.md — issue 5.12.

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveDrips Wave Program - opt an issue in by applying this labelarea:webapps/web - dashboard, checkout, widgetcomplexity:trivial100 pointsgood-first-issueSelf-contained, well-scoped, safe for newcomerstype:bug

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions