Skip to content

SEO: Open Graph tags on listing pages fall back to homepage #120

Description

@Skytonet2

Summary

Every listing page serves the homepage's Open Graph values, so link previews are wrong.

Problem

The same shared <head> that hardcodes canonical also hardcodes the homepage's og:title, og:description, and og:url for every route. Anyone sharing a project, event, or activity link on social gets a preview for the homepage — no return on what they actually pointed at. og:url pointing at the homepage also collapses all engagement counters for individual pages onto a single address.

Expected behavior

Derive OG values from the current route alongside canonical, taking title/description from the values already written per-page:

<meta property=\"og:url\" content=\"https://nearbuilders.org{{ current_path }}\">
<meta property=\"og:title\" content=\"{{ page_title }}\">
<meta property=\"og:description\" content=\"{{ meta_description }}\">

Source

Site audit — https://polarized-ounce-f1e.notion.site/NEAR-Builders-Site-Audit-3b30818955df80e9b59bd92c8539b73e

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions