I enable addtoany block to display on a page. When I click, say Facebook. It updates the Facebook page but the URL is to the website home page and not to the page being displayed. Note that the page being displayed is not a node.

Shouldn't the link be the page that I'm on when I click addtoany? What am I doing wrong?

CommentFileSizeAuthor
#2 addtoany-any-page-1172076-2.patch920 bytesjfrederick

Comments

msellers’s picture

Lacking a response from the maintainers of this module, I guess I need to move on to another more supported module.

I think I'll give addthis module a try.

jfrederick’s picture

Status: Active » Needs review
StatusFileSize
new920 bytes

See attached patch.

If current page is not a node, instead of using the frontpage for the AddToAny URL, it will use the current path. It accounts for http/https.

frdesign’s picture

Issue summary: View changes

I'm using addtoany on my user profiles. Now thanks to this patch I get the profile url instead of a generic one. Thank you!

micropat’s picture

Status: Needs review » Closed (outdated)