Metatag views integration does not replace {{ arguments.name }} in meta description field

Created on 14 July 2024, 6 months ago
Updated 29 August 2024, 5 months ago

Problem/Motivation

In the taxonomy views, I have overridden Description field with available token from the replacement pattern section with {{ arguments.name }} However, the replacement never occur, displaying entire twig section in the output.

<meta name="description" content="{{ arguments.name }}" />

Steps to reproduce

1. Edit taxonomy views.
2. Click the link in the Metatag section.
3. Add the token {{ arguments.name }} in the descriptive metatag section.
4. Save the view and clear the cache.
5. visit the taxonomy views page.
6. Check the source.

๐Ÿ’ฌ Support request
Status

Needs review

Version

2.0

Component

Views integration

Created by

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

Comments & Activities

  • Issue created by @shinkula
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia sourav_paul Kolkata

    @shinkula I've tried to replicate the issue on Drupal10.3 by following the mentioned steps, But Can't replicate the issue...
    & I also have noticed that there are no such replacement patterns exist as you mentioned but other replacement patterns are working fine.

    Attaching SS with this...

    Need for info to reproduce & debug the issue

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance Vadim478

    Got quite the same issues.

    I replace taxonomy/term/%taxonomy_term by taxonomy/term/% in view page URL and it's working

  • @Sourav_Paul I am providing more info. I have modified the default taxonomy term(content) views. Added a term as a relationship and a contextual filter on the same term. You can look at the view definition in the attached screenshots. The term(Ubuntu) will be fetched from the URL path e.g. /category/Ubuntu and list all the pages associated with the term Ubuntu. Everything is working except the meta description replacement.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vinai_katiyar Delhi NCR

    vinaik โ†’ made their first commit to this issueโ€™s fork.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vinai_katiyar Delhi NCR

    @shinkula enable the option "Use replacement tokens from the first row" under the "Meta tags" on the taxonomy views page. This will replace the meta description with the {{ arguments.name }} token.

    Kindly review the attachments for more details.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vinai_katiyar Delhi NCR

    vinaik โ†’ changed the visibility of the branch 3461288-metatag-views-integration to hidden.

  • Status changed to Needs review 6 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vinai_katiyar Delhi NCR
  • Hi @Vinai_Katiyar It worked ! Greatly appreciate you for letting us know about this choice that can be selected for the replacement to occur.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Tirupati_Singh

    Hi @shinkula, since the issue was not in the module and the issue was encountered due to the wrong configuration provided. So, I'm changing the issue Category to Support request. In addition, as the issue has been resolved, can we close the issue?

Production build 0.71.5 2024