Active
Project:
Real-time SEO for Drupal
Version:
8.x-1.5
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2020 at 19:29 UTC
Updated:
5 Nov 2024 at 09:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
anruetherIf I understand this issue correctly it also applies to 2.x: If a token is used in metatags description, yoast_seo does not use the value of that token.
I would expect the same behaviour as with the metatags title field: If I insert a token e.g.
[node:title] | [site:name]and after clicking on another field, yoast_seo updates the preview immediatly.Comment #3
jplana commentedI have a similar problem, where the [node:summary] seems to be replaced within the browser, and the meta description field ends up containing HTML.
Even if I try replacing the token in the metatag configuration the SEO module seems to be ignoring my settings.
Comment #4
jplana commentedAfter some more digging I saw that the Yoast SEO module defaults the summary field to be the body (yoast_settings.fields.summary). This will make the meta description snippet to get the unparsed content of the body field.
I put together a patch that strips the HTML tags from all fields. Unfortunately I don't have a solution for the original issue reported here.
Comment #5
superyaourght commentedHello,
I had the same issue. I forgot to extend the permissions of metatag to the content type.
You can find it in /admin/config/search/metatag/settings and activate basic metatags for the content with yoast on.