Skip to content

fix: stop embed page rendering its own html/head/body (closes #827) - #897

Closed
Obiajulu-gif wants to merge 1 commit into
OlaGreat:mainfrom
Obiajulu-gif:fix/issue-827-split
Closed

fix: stop embed page rendering its own html/head/body (closes #827)#897
Obiajulu-gif wants to merge 1 commit into
OlaGreat:mainfrom
Obiajulu-gif:fix/issue-827-split

Conversation

@Obiajulu-gif

Copy link
Copy Markdown
Contributor

Split out of #842 per request. Closes #827.

…t#827)

frontend/src/app/embed/[username]/page.tsx rendered its own <html>/
<head>/<body> with no layout.tsx to opt out of the root layout, so
Next.js nested it inside app/layout.tsx's own <html>/<body>. Browsers
hoist the inner <head> content out of the tree, /embed.css was never
actually applied, and the "background: transparent" body style had no
effect — breaking the embed widget's appearance in iframes.

Added frontend/src/app/embed/layout.tsx as a bare passthrough and
removed the page's own document tags. Since the route still inherits
the root layout's <body> (there's no way to fully opt out in the App
Router), embed.css now forces background: transparent !important on
html/body so the widget still renders transparently.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@Obiajulu-gif 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

@Obiajulu-gif

Copy link
Copy Markdown
Contributor Author

Closing — the original combined PR #842 (which this was split from) was already merged upstream, so this duplicates already-merged work.

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.

[Frontend] Embed page renders its own <html>/<body> tags without a layout override — produces invalid double-nested HTML

1 participant