Skip to content

Fix link previews in Teams and Telegram - #46

Merged
aivascu merged 1 commit into
masterfrom
fix/og-meta-head-order
Sep 1, 2026
Merged

Fix link previews in Teams and Telegram#46
aivascu merged 1 commit into
masterfrom
fix/og-meta-head-order

Conversation

@aivascu

@aivascu aivascu commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Prioritize Open Graph and Twitter Card meta tags in <head> so they render before Nuxt UI inline CSS
  • Add og:image:width and og:image:height for crawlers that require image dimensions

Teams and Telegram often read only the first ~16 KB of HTML. Our OG tags were at byte ~19,600, so crawlers missed them while tools like opengraph.xyz (which read the full page) still showed a correct preview.

Test plan

  • Run npm run generate and confirm og:image appears within the first 1 KB of index.html``n- [ ] Deploy and verify link preview in MS Teams (may need ?v=2` cache bust or ~30 min wait)
  • Verify preview in Telegram via @webpagebot

Crawlers often read only the first ~16 KB of HTML. Nuxt inlined ~19 KB of CSS before Open Graph tags, so IM apps missed them while full-page parsers still worked. Render SEO tags immediately after charset/viewport.
@aivascu
aivascu merged commit 3b16498 into master Sep 1, 2026
2 checks passed
@aivascu
aivascu deleted the fix/og-meta-head-order branch September 1, 2026 10:33
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.

1 participant