Needs review
Project:
AddThis
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2012 at 17:56 UTC
Updated:
13 Jan 2013 at 18:11 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | addthis-custom_url_bug-1829322-1.patch | 1.47 KB | bdlangton |
Comments
Comment #1
bdlangton commentedHere 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.
Comment #2
IWasBornToWin commentedCan this be done in version 7, if so how, where?