Closed (fixed)
Project:
AMP Theme
Version:
8.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 May 2016 at 20:05 UTC
Updated:
7 Feb 2021 at 13:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
karens commentedHere is something that works for me:
Comment #3
rainbowarrayComment #4
karens commentedThis is still an issue in latest code, but there was an error in the patch file, updating it:
Comment #5
rainbowarrayPretty sure this would remove the AMP metadata json, so this needs to be more finegrained.
Comment #6
rainbowarrayTurns out the AMP metadata JSON still shows up in head just fine. I think by the time preprocess_html fires, the metadata JSON attachment has already been bundled into the html head placeholder? That makes me wonder if it's possible for something else to sneak in through that route. I guess if we find something, we can track it down at that time. It seems like something with attachment bubbling is difficult to work with from the theme layer, but I'm not sure what the fix is.
Comment #8
rainbowarrayComment #10
berdirNot sure what's different for amp.module, but my own application/ld+json element is being removed here. See #2770393: amptheme_preprocess_html() removes all script tags, even ld+json
Comment #11
playful commentedThis is still an issue on 8.3. Does anyone have a solution that will work with this version?
Comment #12
cuman commented+1
Comment #13
playful commentedAdding related issue.