When I set a custom URL (different from the URL currently on) in $config['url'], that gets passed to theme_addthis_toolbox() and it works fine for share links in the toolbox provided outside the "more" box (or +Share where you see many more options). But the items that show up under "more" still use the URL that you are on, not the custom URL.

Comments

bdlangton’s picture

Status: Active » Needs review
StatusFileSize
new1.47 KB

Here is a patch. I'm not sure if it is the most elegant, but it works. Basically, if a custom URL is passed into theme_addthis_toolbox, I also pass it through to theme_addthis_toolbox_item so that each individual item can include the custom URL as an attribute. This fixes the problem so that all share items under "more" also use the custom URL.

IWasBornToWin’s picture

Can this be done in version 7, if so how, where?