Fixed issue with some pages not showing page title in browser title because they use a loading spinner
Added page title to change email page and token expired scenario
Added renderHead helper function and used it across all pages and components that were using next/head
Notes
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):
2. Using a helper to replace renderHead doesn't work because it displays <!-- --> on first render. I have no idea why.
Actually, I fixed this by using the {``} syntax instead of rendering the variable by itself in the react nodes.
What's Changed
renderHead
helper function and used it across all pages and components that were usingnext/head
Notes
2. Using a helper to replaceActually, I fixed this by using therenderHead
doesn't work because it displays<!-- -->
on first render. I have no idea why.{``}
syntax instead of rendering the variable by itself in the react nodes.