How to append Sitename to Title meta tag in Next.JS 13?
Unanswered
Horse guard wasp posted this in #help-forum
Horse guard waspOP
Hi all
I was wondering what' the best workaround for achieving an appended pagetitle and sitename meta title tag using the "metadata" feature of Next.JS 13?
Desired Output:
Page Title - Site Name
I was wondering what' the best workaround for achieving an appended pagetitle and sitename meta title tag using the "metadata" feature of Next.JS 13?
Desired Output:
Page Title - Site Name
4 Replies
@joulev use a template <https://nextjs.org/docs/app/api-reference/functions/generate-metadata#template-object>
Horse guard waspOP
Thank you. I did play around with this before, if not mistaking only works for the sub pages, somewhat you have to manually add the sitename to the root home page as its not picking it up. Have you had a similar experience?
@Horse guard wasp Thank you. I did play around with this before, if not mistaking only works for the sub pages, somewhat you have to manually add the sitename to the root home page as its not picking it up. Have you had a similar experience?
Yes, and I reported this to them as a bug and they dismissed it for some reasons I still don’t understand, so you have to add it manually for that single page
Orinoco Crocodile
Is this still a bug; i.e. have to manually add site name [and other meta] to down level pages?