Problem/Motivation
Wanted to disable hashtags being added to Twitter share URLs; AddThis docs suggest this is controlled by data_track_clickback, which despite unchecking "Allow AddThis to track incoming traffic from shares" had no effect on removing the twitter share URL hashtags.
Proposed resolution
The problem is that the AddThis module receives a "0" instead of a PHP bool FALSE from variable_get(), which is stored in settings as a JS 0, and the AddThis JS is strict about requiring a JS bool false. This is already noted in the 6.x-3.x code with workarounds for some of the other bool vars.
Adding a workaround for this var (including default setting in variable_get to avoid missing index PHP notice on the bool conversion) resolved the issue for me.
| Comment | File | Size | Author |
|---|---|---|---|
| data_track_clickback-bool.patch | 1.06 KB | emsearcy |