When I use the twitter-button in featured, the 'link' used is always the same, so all twitter counters in the view, show the same number of likes.
When the article is opened, the counter is correct.
I understand from the code, that the JavaScript takes the url of the browser to generate the twitterbutton, however in a view (featured or blog) this is not correct.
Can you please add the correct 'code' into the JavaScript?
I suggest the line 185:
Code: |
<a href="https://twitter.com/share" class="twitter-share-button" data-text="$title" data-count="$twitterCounter" data-via="$twitterName" data-lang="{$this->langStartTag}">Tweet</a>
|
in fastsocialshare.php has to be expanded to contain the correct url for the article it is showing.