The zen_process_html_tag() function removes $tag['#attributes']['type'] if it does not equal "text/ng-template". The only problem is that it will remove the attribute when it equals "application/ld+json" which breaks the output from the Schema.org Metatag module.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | zen-n2934644-6.4.patch | 843 bytes | Fabrice Chaillou |
Issue fork zen-2934644
Show commands
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 #2
damienmckennaComment #3
damienmckennaThis patch changes zen_process_html_tag() so it won't remove the type="application/ld+json" attribute.
Comment #4
damienmckennaThe discussion in #2915542: Missing type="application/ld+json" on script tag when using Zen or Mothership or Adaptivetheme themes is worth reviewing.
Comment #5
Marko B commentedI confirm this patch works, should be put into main branch asap.
Comment #6
steinmb commentedRead through issue linked to in #4, lets address it in here.
Comment #7
damienmckennaFor anyone who needs this for 7.x-5.5.
Comment #8
anybodyJust for others who should run into this issue: AdaptiveTheme has the same problem:
process.inc, line 47ff.:
Comment #9
Fabrice Chaillou commentedPatch for 6.4.
Comment #12
kunal_sahu commentedHi This patch applied cleanly.
LGTM.
Creating an MR for helping the maintainer. Thanks