Skip to content

5.12 - Fix nested <html> document in receipt not-found page - #176

Open
Otfrugger wants to merge 1 commit into
determined-001:mainfrom
Otfrugger:fix/receipt-not-found-nested-html
Open

5.12 - Fix nested <html> document in receipt not-found page#176
Otfrugger wants to merge 1 commit into
determined-001:mainfrom
Otfrugger:fix/receipt-not-found-nested-html

Conversation

@Otfrugger

Copy link
Copy Markdown
Contributor

closes #158

Summary

apps/web/app/r/[reference]/page.tsx's catch branch returned its own <html><body> wrapper from inside the root layout (apps/web/app/layout.tsx), which already supplies both — invalid nested-document markup, causing hydration warnings and undefined cross-browser behavior for anything depending on document structure.

Removed the <html>/<body> wrapper, leaving the bare <main> fragment — matching every other not-found branch in the app (e.g. apps/web/app/pay/[id]/page.tsx's unreachable-API branch).

Checked the rest of apps/web/app for the same shape:

grep -rn "<html" apps/web/app

Only apps/web/app/layout.tsx (the root layout itself) matches now — no other occurrence.

Verification

  • Confirmed via grep -rn "<html" apps/web/app that no page outside the root layout emits <html> anymore.
  • Byte-scanned the changed file for stray control bytes before committing.
  • Could not run: no pnpm/node_modules install is available in this environment, so I could not start the dev server to visually confirm the receipt not-found page renders with no hydration warning in a browser. The change is a straightforward markup removal (deleting the <html><body> wrapper and dedenting the existing <main> fragment, no logic touched), but please do a quick visual check before merging.

apps/web/app/r/[reference]/page.tsx's catch branch returned its own
<html><body> wrapper from inside the root layout, which already supplies
both — invalid nested-document markup, causing hydration warnings. Every
other not-found branch in the app (e.g. apps/web/app/pay/[id]/page.tsx)
returns a bare <main> fragment; this one now matches. Checked the rest of
apps/web/app for the same shape (grep -rn '<html') — no other occurrence
outside the root layout.
@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@Otfrugger Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@Otfrugger is attempting to deploy a commit to the determined's projects Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant