Closed (fixed)
Project:
Metatag
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2016 at 20:15 UTC
Updated:
28 May 2016 at 08:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mikeyk commented@DamienMcKenna FYI I'm working on this now - should have a patch in a day or so for consideration
Comment #3
mikeyk commented@DamienMcKenna Attached is a patch to add this functionality. It adds a new attribute to MetaNameBase called "secure". If a tag has this set to TRUE (currently only og:image:secure_url), then any http:// will be converted to https://. Also included is a test.
Hopefully I've gone about this the way you had anticipated!
Comment #4
damienmckennaOh, awesome! Thank you! This has just a few minor tweaks.
Comment #9
damienmckennaThe translation test file was renamed, this fixes that.
Comment #10
mikeyk commentedLooks good!
Comment #11
damienmckennaRerolled.
Comment #12
damienmckennaComment #15
damienmckennaThis patch fixes a copy/paste error I made in #11, and sets the 'secure' attribute to 'TRUE' for og:image:secure_url. Because duh.
Comment #16
damienmckennaComment #19
damienmckennaThe error is:
Any thoughts?
Comment #20
damienmckennaI don't get that error when I manually save the admin/config/search/metatag/global form.
Comment #21
aspilicious commentedNot yet found the root cause, but I noticed this already:
metatag_open_graph.metatag_tag.og_image:
type: label
label: 'Open Graph: Image height'
metatag_open_graph.metatag_tag.og_image:
type: label
label: 'Open Graph: Image'
Comment #22
aspilicious commentedSo each tag should be defined as "metatag.metatag_tag.[%key]".
The current og scheme is defined as:
I think replacing "metatag_open_graph" with "metatag" should do the trick
Comment #23
damienmckennaAH! I thought those were supposed to be prefixed by the submodule's name, not metatag. Ok, that makes sense.
Lets see how this works.
Comment #25
damienmckennaThat did the trick, thanks aspilicious!
Comment #26
aspilicious commentedYou still have a duplicate key:
-metatag_open_graph.metatag_tag.og_image:
+metatag.metatag_tag.og_image:
type: label
label: 'Open Graph: Image height'
-metatag_open_graph.metatag_tag.og_image:
+metatag.metatag_tag.og_image:
type: label
label: 'Open Graph: Image'
The fact that the test doesn't fail means that "image height" is never used in the UI or that there isn't any test saving og image height.