Need help setting up SEO
Hello, I'm trying to render the SEO tags for my library category page on the server. Right now I have an useEffect to set and append meta tags to the head. This should be possible on the server right. Where are the examples with Router or Tanstack start?
9 Replies
genetic-orange•6mo ago
Document Head Management | TanStack Router React Docs
Document head management is the process of managing the head, title, meta, link, and script tags of a document and TanStack Router provides a robust way to manage the document head for full-stack appl...
genetic-orangeOP•6mo ago
Ah I was confused that this wasn't possible for specific routes.
thanks
So is there a merge if I only put specific properties on a child route?
genetic-orange•6mo ago
yes
foreign-sapphire•6mo ago
@Manuel Schiller I'm trying to get a differnt seo tag for a page apart from the home page but it seems to return the home page seo tag, how can I go about it?
genetic-orange•6mo ago
no idea what this means 🤪
do you have a reproducer ?
foreign-sapphire•6mo ago
I'm trying to display different SEO tags for a specific page (not the home page), but it's still showing the home page's SEO tag.
For example, I would like to share the profile URL with its own SEO tag, but it's showing the home page's SEO tag instead.
genetic-orange•6mo ago
and how do you set any of those tags ?
in which routes etc
foreign-sapphire•6mo ago
in __root routes and in the profile routes
genetic-orange•6mo ago
a reproducer would help here