Files
wekan/server/lib
Lauri Ojansivu bc91db9e27 Add Open Graph meta tags to public card pages for link previews.
A card URL pasted into Discourse, Slack, Discord etc. now renders an inline
preview: a connect middleware sets request.dynamicHead (the same injection
point Meteor's WebApp boilerplate generator already supports, following the
precedent in server/routes/customHeadAssets.js) with og:title,
og:description, og:url and og:image tags for the '/b/:boardId/:slug/:cardId'
route, before Meteor's normal SPA shell is served. The tags are only ever
built when the card's board is public (board.isPublic()) - a private board's
card serves the normal, unmodified page, since an unfurl request carries no
auth. The gating and rendering logic lives in server/lib/cardOgTags.js as a
Meteor-free pure module with unit + negative test coverage.

Thanks to yelloff and xet7 !

Closes #3456,
2026-09-10 19:56:48 +03:00
..
2026-06-06 02:53:58 +03:00