C
C#2y ago
Amos

✅ Blazor WASM - Dynamic Open Graph Protocol

I'm looking for a bit of help/suggestions with a dynamic OGP using Blazor WASM. Since it's a SPA, I'm not exactly sure how to approach a more page/description dynamic OGP embed. For example, if a user navigates and hotlinks a profile, I'd like the OGP embed to include the updated title page, and a more customised embed including their profile name and some more relevant information.
4 Replies
Angius
Angius2y ago
You don't Well, not easily Most places that use OG metadata aren't Google, so thet don't run the JS code Let alone WASM The metadata needs to be rendered server-side or statically-generated
Amos
AmosOP2y ago
Yeah, I thought this. 😦 Is it worth the effort to move some aspects server-side just for this component?
Angius
Angius2y ago
Andrew Lock | .NET Escapades
Enabling prerendering for Blazor WebAssembly apps
In this post I describe how to host a Blazor WebAssembly app in an ASP.NET Core app and how to enable WebAssembly prerendering
Amos
AmosOP2y ago
Thanks!
Want results from more Discord servers?
Add your server