Closed (fixed)
Project:
Metatag
Version:
8.x-1.x-dev
Component:
Other tags
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2015 at 20:20 UTC
Updated:
27 May 2016 at 18:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
paulmckibbenHere is the patch.
Comment #3
paulmckibbenForgot to change status to Needs Review.
Comment #4
damienmckennaYeah, that should be fixed ;)
Comment #5
damienmckennaComment #6
damienmckennaI don't think this is the right way of doing it - would it be possible to do via metatag_preprocess_html() instead?
Comment #7
damienmckennaBumping this to beta3 so I can get beta2 out.
Comment #8
damienmckennaComment #9
swentel commentedLooked into metatag_preprocess_html(), it seems like not all attachments have been merged by then.
So it seems the entity_view_alter approach is the best way forward. Will have a second look though.
Comment #10
breezeweb commentedThanks for patching this; it's been causing some SEO havoc for us.
Any chance it can be committed for the next release?
Comment #11
paulmckibbenI have rerolled my patch from #2 against the latest from the 8.x-1.x branch. @swentel is correct in #9, in that we can't do this in metatag_preprocess_html() because the canonical tag has not been added by core at that point. Given that, any issue committing this patch?
Comment #12
crizAs canonical tags are very important metatags for seo (that can also do some harm) I consider this a major issue.
The patch from #11 works.
Sidenote: Not so important, but same needs to be done for the generator and the shortlink metatags. Should be probably a new issue with lower priority.
Comment #13
crizComment #14
swentel commentednitpick, needs an additional space
Comment #15
platinum1 commentedIn my mind, this is a major issue as well. I am curious why the patch is not being committed?
Comment #17
damienmckennaCommitted. Thanks @paulmckibben!
Comment #18
damienmckenna