Add Open Graph and Twitter Card meta-tags for link previews #24

Merged
nitrix merged 1 commits from 012-link-preview into master 2026-03-09 20:30:10 +01:00
Owner

Summary

  • Replace PathResourceResolver SPA fallback with SpaController that injects OG/Twitter meta-tags into cached index.html
  • Event pages (/events/{token}) get event-specific tags (title, formatted date/location, description)
  • All other pages get generic fete branding tags
  • Includes og-image.png brand asset (1200x630, glassmorphism style) and server.forward-headers-strategy=framework for proxy support

Test plan

  • 97 backend tests pass (./mvnw verify — checkstyle, spotbugs, unit + integration)
  • 133 frontend unit tests pass
  • Manual verification: curl against running backend confirms correct meta-tags on /, /create, /events, /events/{token}, and fallback for unknown tokens

🤖 Generated with Claude Code

## Summary - Replace `PathResourceResolver` SPA fallback with `SpaController` that injects OG/Twitter meta-tags into cached `index.html` - Event pages (`/events/{token}`) get event-specific tags (title, formatted date/location, description) - All other pages get generic fete branding tags - Includes `og-image.png` brand asset (1200x630, glassmorphism style) and `server.forward-headers-strategy=framework` for proxy support ## Test plan - [x] 97 backend tests pass (`./mvnw verify` — checkstyle, spotbugs, unit + integration) - [x] 133 frontend unit tests pass - [x] Manual verification: curl against running backend confirms correct meta-tags on `/`, `/create`, `/events`, `/events/{token}`, and fallback for unknown tokens 🤖 Generated with [Claude Code](https://claude.com/claude-code)
nitrix added 1 commit 2026-03-09 20:26:45 +01:00
Add Open Graph and Twitter Card meta-tags for link previews
All checks were successful
CI / backend-test (push) Successful in 1m9s
CI / frontend-test (push) Successful in 23s
CI / frontend-e2e (push) Successful in 1m12s
CI / build-and-publish (push) Has been skipped
751201617d
Replace PathResourceResolver SPA fallback with SpaController that
injects OG/Twitter meta-tags into cached index.html template.
Event pages get event-specific tags (title, date, location),
all other pages get generic fete branding. Includes og-image.png
brand asset and forward-headers-strategy for proxy support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nitrix merged commit 448e801ca3 into master 2026-03-09 20:30:10 +01:00
nitrix deleted branch 012-link-preview 2026-03-09 20:30:10 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nitrix/fete#24