Custom metatags showing ID instead of name

Created on 16 December 2024, 5 months ago

Problem/Motivation

Adding a custom meta tag to the site shows the machine name (custom tag ID) as the tag name, instead of the label

Steps to reproduce

Add custom tag. For example `twitter:label1`

Viewing source, the name is converted to `twitter_label1`

Proposed resolution

Update the getDerivativeDefinitions() function with the following:

`$derivative['name'] = $this->t($metatag_custom_tag->get('label'));`

Remaining tasks

Implement

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

2.1

Component

Other tags

Created by

🇨🇦Canada sagesolutions

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024