Closed (fixed)
Project:
Google Plus One Button | Google+ Badge
Version:
6.x-1.0-rc7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2011 at 04:29 UTC
Updated:
20 Jul 2011 at 06:52 UTC
I have a site which on some pages will have 2 +1 icons, 1 at the top which is a +1 for the root of the site and the second is the +1 which is pointing to the article, and both +1's pointing to the current page.
I am directly calling the theme function like so.
echo theme('google_plusone_button', array('size' => 'small', 'count' => 1, 'url' => url('<front>', array('absolute' => 1))));
and
echo theme('google_plusone_button', array('size' => 'medium', 'node' => $node));
and the returned google html seems to be correct. but the buttons seem to point to the url of the node.
Comments
Comment #1
agoradesign commentedHi,
I'm quite sure that is related to this bug report: http://drupal.org/node/1206098
Currently there exists a bug when choosing the HTML5 method because a wrong HTML5 attribute is generated ('href' instead of 'data-href').
You have two possibilites:
'syntax' => 'g:plusone'to your arguments arrayComment #2
corbacho commentedOr third possibility:
Download the 6.x-1.0-rc8 version
Thanks for reporting
Comment #3
gordon commentedThanks that fixed it.