-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
defaultTitle not used on initial page load #507
Comments
I had this problem before but I forgot how I solved it, I'm not sure but try putting |
@modbender that did the trick thank you! Not sure if this should be considered working as is and maybe include a note in the docs about the order of |
@tacomanator a pull request to add a note to the docs about this would be awesome 😅
|
I think it's about time this is closed. |
Defining
titleTemplate
in a default config file works fine as I browse around the site. However, the first page load seems to ignore the template and display just thetitle
as is. I create an example repository to demonstrate:https://github.com/tacomanator/nextjs-nextseo-defaulttitle
Here is an animation of the problem. Notice how the title is missing "| MySite" initially, and on reload.
Note: I may be doing things a little differently.
titleTemplate
is defined, as per the website exampletitleTemplate: "%s | MySite"
, in a config file used by<DefaultSeo />
. However, rather than using<NextSeo />
directly on each page, I use it on a sharedLayout
component, which receives and forward atitle
prop.The text was updated successfully, but these errors were encountered: