Replies: 1 comment
|
Nice problem statement: this is exactly a social-sharing case where route-level treatment works better than full app migration. For profile routes, define a public-route contract + crawler allowlist, then serve a rendered snapshot for FB/Twitter while leaving interactive/profile editing flows untouched. That avoids over-scoping changes, and if you keep parity checks on rendered status/meta, you reduce regressions. A product setup for this pattern is |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Overview
This is a suggestion to spotlight an important issue affecting SEO and social sharing on Monkeytype: the problem of static meta tags in our current setup. The goal of this discussion is to highlight the impact this has on how our site appears in search engines and when shared on social media, and to outline possible solution paths for the team to consider. I hope this will be reviewed by more experienced team members.
Problem Statement
Currently, we have implemented a client-side update for the Open Graph
og:urlmeta tag (see issue #6597 and PR #6598). This approach updates the meta tag dynamically in the browser using JavaScript:While this works for users in the browser, the updated meta tags are not present in the static HTML source. As a result, when search engines or social media platforms (like LinkedIn, Facebook, or Twitter) crawl our site, they only see the original HTML without the correct meta tags. This means profile links shared on social media may not display the correct preview or may redirect to the homepage, as described in issue #6597.
Potential Solution Paths
Here are some possible approaches to address this issue:
Server-Side Rendering (SSR)
Pre-rendering (Static Site Generation or Middleware)
Dynamic Rendering
Conclusion
The main goal of this message is to bring attention to the limitations of static meta tags for SEO and social sharing in our current setup. Addressing this would improve how Monkeytype profile pages appear in search results and on social media, potentially increasing the platform’s reach as users share their profiles.
I am not proposing a specific solution at this stage, but rather highlighting the problem and outlining possible directions for the team to consider. I hope this will be reviewed and discussed by those with more experience in SEO and web infrastructure.
References:
All reactions