Real-Time SEO not working properly with defaults set up with tokens in Meta tag module

Created on 6 August 2020, almost 5 years ago
Updated 5 November 2024, 6 months ago

Problem/Motivation

Snippet preview within blog post is displaying the "Body" field text, rather than the "Summary" field text as specified by the [node:summary] token within the meta tags > Basic tags > Description settings for the post.

However, the code reflects the appropriate meta tags in the header.

Steps to reproduce

  1. Set default meta tags for the Content > description:. (See attached bug-image-1-meta-tags image)
  2. Create a blog post, filling out the Title, Summary, Body fields. Review "Snippet Preview" section under the "Real-time SEO for Drupal" section. It is not pulling the appropriate information according to the default tokens set within the Meta tags > Basic tags > Description section. (See attached bug-imate-2-post-fields-rtseo-display image)
  3. Review code to make sure meta tags are displaying properly within section. (See attached bug-image-4-page-head-code-after-saving image)

    1. Proposed resolution

      Make sure the Real-Time SEO for Drupal snippet preview is pulling the appropriate field within the interface. Can cause confusion for users.

      Remaining tasks

      User interface changes

      API changes

      Data model changes

πŸ› Bug report
Status

Active

Version

1.5

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States tracyamescooper Texas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Hello,
    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.

Production build 0.71.5 2024