aldrichdev / neatf2p-nextjs

Next.js project/website for Neat F2P.
https://neatf2p-nextjs.vercel.app
0 stars 1 forks source link

F2P-146 | Shared link title fixes for some pages #105

Closed aldrichdev closed 6 months ago

aldrichdev commented 7 months ago

What's Changed

Notes

  1. Sadly we can't use query parameters or custom values (such as player names or news post titles) in the browser title, as these have no value on first render, which appears to be all that Discord or any other software with a link embed would actually use (based on what we're seeing now for news posts titles in Discord):

image

2. Using a helper to replace renderHead doesn't work because it displays <!-- --> on first render. I have no idea why. image Actually, I fixed this by using the {``} syntax instead of rendering the variable by itself in the react nodes.

vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
neatf2p-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 9, 2024 11:08pm