Closed (duplicate)
Project:
Metatag
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2024 at 05:58 UTC
Updated:
23 Apr 2025 at 13:58 UTC
Jump to comment: Most recent
Custom Meta tags: Handle empty values
Remove the empty values
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
naveenvalechaI have opened the PR with the fix.
We need tests which I'll add later
Comment #4
keshav patel commentedAlthough purpose is clear from the issue title, still the issue summary needs to be updated.
Comment #5
naveenvalechaComment #6
radimklaskaI just tested this functionality and the missing tokens are correctly skipped. Thanks Naveen!
Comment #7
eleonelWorking fine for me too, after applying #5 the meta tags with empty value are gone.
Comment #8
damienmckennaWon't this remove valid strings which fail empty(), like the number zero?
I think this should be changed to loop over each element of the array and run the old check.
Comment #9
naveenvalechaShould I close this as duplicate of #3378434: Empty values not removed from multi-value meta tags as it is solving in generic way for all plugins
Comment #10
damienmckennaYes, let's do that.