Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(router): add logic to router to handle meta tags #216

Merged
merged 4 commits into from Mar 20, 2024

Conversation

joshuagraber
Copy link
Contributor

Will handle #199 when merged.

To test

Run the app, visit several different routes, ensure that the tags change as expected per route (only the og:url tag will change for now, but we can use the meta property on the routes object to update others if need be)

Comment on lines +18 to +19
// Use meta property on route to override meta tag defaults
// meta: { title: 'Police Data Accessibility Project - Search', metaTags: [{ property: 'og:title', title: 'Police Data Accessibility Project - Search' }] },
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @josh-chamberlain just wanted to call your attention to this. We can override any meta tag by route (in absence of specific route data, we fall back to the defaults). So if there are any of them that should have specific values, let me know and I can add those here as well.

mbodeantor
mbodeantor previously approved these changes Mar 19, 2024
Copy link
Contributor

@mbodeantor mbodeantor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@josh-chamberlain
Copy link
Contributor

@joshuagraber thanks! I'm good to merge this into main unless there's a compelling reason to use dev. dev is good if you need to test in production, but otherwise I'm not stressed about it.

@joshuagraber joshuagraber changed the base branch from dev to main March 19, 2024 20:30
@joshuagraber joshuagraber dismissed mbodeantor’s stale review March 19, 2024 20:30

The base branch was changed.

@joshuagraber
Copy link
Contributor Author

Sounds good @josh-chamberlain changed the base branch, just need another ✅ to merge.

@mbodeantor mbodeantor merged commit d6db7e4 into main Mar 20, 2024
8 checks passed
@joshuagraber joshuagraber deleted the feature/open-graph-defaults branch March 20, 2024 17:43
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.

None yet

3 participants