Dynamic meta tags #1409
-
❓QuestionI've tried implementing dynamic meta tags by using react-helmet and react-helmet-async but both are still broken. I still don't see my dynamic meta tags in SEO tools even though if I inspect the page, the meta tags are already there. Somehow it falls back to the default value. Do you have any suggestions for this? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Without seeing the actual code it is hard to say what the issue is. |
Beta Was this translation helpful? Give feedback.
-
@fivethreeo I'm using This is the
This is on
This is on
Pretty basic stuff and nothing complicated. It still returns |
Beta Was this translation helpful? Give feedback.
-
It might be you have to render the app twice. Once to update helmet context and once to render the new meta. Server side that is. |
Beta Was this translation helpful? Give feedback.
-
Are you sure the server side routes correctly? |
Beta Was this translation helpful? Give feedback.
-
@fivethreeo the meta tags are already there so it's not a problem of rendering. My question is more on why crawler picked up the default meta tags even though when rendered in the browser it already shown the dynamic meta tags? |
Beta Was this translation helpful? Give feedback.
-
If the issue is crawling reading your site wrong this is not a razzle issue. But if you turn off JavaScript an check the source, if that gives the right result the issue is on the other end. If not your setup is wrong. If you made a repo with your code I can spin it up and fix any issues. |
Beta Was this translation helpful? Give feedback.
-
The component with helmet probably does some data fecthing to decide props, this does not work server-side. |
Beta Was this translation helpful? Give feedback.
The component with helmet probably does some data fecthing to decide props, this does not work server-side.