Strange Meta plugin behavior in SSR #15835
Unanswered
arogonov
asked this question in
CLI - SSR mode
Replies: 1 comment
-
|
By removing the title and description from index.html at the root, I solved the problem of duplicates. But why the title and description are not added on the server side - I do not understand. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Colleagues, hello everyone.
@quasar/cli v2.1.1
Tested on default Quasar SSR projects. Tried both Vite and Webpack the behavior is similar.
Add to the Framework section of the quasar.config.js file
plugins: [ 'Meta', ],Add Setup to App.vue

Run
quasar dev -m ssrWe look at the response from the server through view-source. As you can see the attribute in the HTML tag has been added. The rest hasn't changed at all.

We look through the inspector after rendering. The attribute in HTML has remained the same. But! Now you see a double title tag and a double description.

In my opinion, it works very strange and not logical. I will be glad for any help. Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions