feat: add static Open Graph meta tags for social media previews#420
Merged
feat: add static Open Graph meta tags for social media previews#420
Conversation
Add OG tags to index.html so crawlers that don't execute JavaScript can read them. Fix default og:title from "Police Data Access Point" to "Police Data Accessibility Project" across all config. Update refreshMetaTags to clean up static OG tags when JS takes over. Also fix pre-existing Prettier formatting in two unrelated files. Closes #173 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
joshuagraber
reviewed
Mar 2, 2026
Collaborator
joshuagraber
left a comment
There was a problem hiding this comment.
This seems like a lot of file changes for static og tags. Do you mean this to go to dev @maxachis?
Contributor
Author
Yes it was! Fixed! |
joshuagraber
approved these changes
Apr 9, 2026
| auth.isAuthenticated() && | ||
| getIsV2FeatureEnabled('ENHANCED_SEARCH') | ||
| auth.isAuthenticated() && | ||
| getIsV2FeatureEnabled('ENHANCED_SEARCH') |
Collaborator
There was a problem hiding this comment.
I know this is just formatting drift, but it reminds me: I don't think we need the V2 feature flags anymore, right? I created an issue for removing the env vars, the util, and its usage from the codebase.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
og:site_name,og:title,og:type,og:description,og:image,og:url) toindex.htmlso social media crawlers that don't execute JavaScript see proper previewsog:titlefrom "Police Data Access Point" to "Police Data Accessibility Project" inrouteHelpers.jsandvite.config.mjsrefreshMetaTagsto remove static OG tags fromindex.htmlwhen JS takes over, preventing duplicatesCloses #173
Test plan
npm run devand view page source (not inspect) to confirm static OG tags appear in raw HTML<head>in dev tools — OG tags should be present and managed by JS after loadnpm run test:unitpasses (30/30)🤖 Generated with Claude Code