In my case, it looks like data-url and data-counturl both specify the same URL. My guess is that this is the cause of the problem. To tweet a URL that redirects to another location, I probably need to specify the tweeted URL (i.e. the canonical URL) as the data-url and the final, fully resolved URL as the data-counturl. Is this right?