Comments (6)
I have the same problem, meta tags for faecbook and twitter is not working. I have already tried by sorting the meta tags to place it at the top of the head but with no success. It seems that onPreRenderHTML is not even getting the meta tags that I dynamically set in my screens.
from react-helmet.
The crawlers of Facebook and Twitter cannot interpret Javascript. Therefore, the meta tags must be rendered by the server.
To achieve this you can look at NextJS for example. Then you don't need this library anymore, because NextJS has a built-in one: https://nextjs.org/docs/api-reference/next/head
from react-helmet.
@KuschL My app is created by vitejs with reactjs and hosted on firebase hosting. Do you mean I need to create another project with NextJs for SSR? I have no experience in NextJS.
from react-helmet.
Unfortunately, I have no experience with vitejs. However, the documentation may help you: https://vitejs.dev/guide/ssr.html
from react-helmet.
Oh. thanks for the documentation. I did not see it. I will look into it.
from react-helmet.
Please check this solution.
from react-helmet.
Related Issues (20)
- [RFF] Avoid Code Duplication
- Send Link
- is it safe? HOT 1
- Strange behavior with body className HOT 1
- How to add meta tags which I first need to fetch HOT 1
- Multiple `<Helmet>` tags will break (only one will render) HOT 3
- I recently used react helmet for changing title of all route links its perfectly working but the title is not change source code plz resolve this issue HOT 1
- Active support HOT 4
- How do I append a value to the title? HOT 3
- Warning 'UNSAFE_componentWillMount', How to fix the problem? HOT 4
- the meta tags is shown in page sourse but not shown in social media share,, any help? HOT 2
- local script and CSS file not working in React-Helmet HOT 1
- React Helmet Meta descriptions are not updated on Google Search HOT 1
- Do react-helmet support ESM tree shaking?
- Analysis: 68% of dependency updates in this repository can be merged.
- Bug: cannot remove/clear document title HOT 2
- The module 'Helmet' cannot be used as a JSX component. HOT 1
- Bug: Destructure Fragments
- Title Does Not Update on Tab Switch with Interval-based Updates HOT 3
- Why should I use the same instance in Server Usage?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-helmet.