When the module is displayed as a Block, every URL that is shared appears as "domain/"
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | incorrect-pages-urls-for-block-view-966572-8.patch | 611 bytes | vladimir-m |
| #4 | addtoany-non_node_page-966572-4.patch | 794 bytes | roflcopterDorrie |
Comments
Comment #1
micropat commentedWhen AddToAny is displayed as a Block, the current node URL is shared, otherwise the frontpage URL is shared.
Please update with specific details if you're experiencing some other related problem.
Comment #2
codewatson commentedI can confirm this, to give you more info, this happens on a page that is not a node, for instance the standard drupal contact page, or a views created page.
Comment #3
matt bSame issue here. If I place the block on a page which is not a node then I want the current page title and current page url to be submitted. Here's my quick hack to addtoany.module:
At line 235 replace
with
Seems a bit complicated to use the node object to determine the current title and path anyway - my code above would work on any page regardless of it being a node or otherwise - or am I missing something?
Comment #4
roflcopterDorrie commentedThe solution in #3 works for me. I have created a patch for version 7.x-4.5
Comment #5
roflcopterDorrie commentedComment #6
sassafrass commentedI have a similar issue. Links work correctly when on a full node page. However, on my front page Blog view, all links, except for LinkedIn, work. I tried applying this patch, but it had no affect. This is my configuration:
The Universal Share button picks up the correct title/url for LinkedIn, it's just the stand alone version that does not...and only on the front page blog view. LinkedIn works correctly when viewing the fill page node.
Comment #7
ankitchauhan commentedI'm also facing the same issue with Linkedin Service button.
Comment #8
vladimir-m commentedPatch for version 7.x-4.6
Comment #9
micropat commentedFixed in 7.x-4.7 thanks to comments and patches.
Comment #10
durancode commentedI was asking to make that the front page spolights articles the addtoany buttos share its articles url cause before they share de home page instead, the solution for this was remove a previus patch for the addtonay.module
line 230
-
+
Drupal 8