Notifications
Clear all

URL for Social Sharing Links to Post Not to Comment

2 Posts
2 Users
0 Reactions
2,225 Views
(@ck-macleod)
New Member
Joined: 8 years ago
Posts: 1
Topic starter  

I've checked this now in two installations, development and production. with three different themes, all PHP 5.5+, including plain vanilla, no other plugins, WP 4.7.2, 2016 Theme, a modified 2017 installation, and an original theme. 

When sharing via Twitter or Google+ (haven't activated Facebook), the $commentLink, which is derived via get_comment_link(), either gets stripped of its comment-specific hash or gets replaced with the post-link. 

So the comment-permalink might be:  http://localhost/wordpressdev/?p=99832 #comment-8904, but the Twitter share link will be  http://localhost/wordpressdev/?p=99832

Likewise under pretty permalinks at the (extensively customized) live blog:  http://ckmacleod.com/2017/01/30/the-data-that-turned-the-world-upside-down-motherboard/#comment-121444 for the comment permalink, but  http://ckmacleod.com/2017/01/30/the-data-that-turned-the-world-upside-down-motherboard/ for the Twitter share. 

I also checked the WpdiscuzWalker file, and verified that it is deriving  $commentLink as expected - with the link to the specific comment. I started looking for places where the link might be getting converted or replaced, but at that point I was searching through the plug-in's folders from file to variable to function, and I thought you all ought to have a better idea why this is happening and (I hope) want to fix it. 

Obviously, successful direct linking to the particular comment is the whole point (for me anyway), and the apparent intention, of this feature. The other alternative for me, which I don't mind terribly but seems gratuitous, will require insertion of alternative comment-sharing functions in place of Wpdiscuz's. Will I need to do that?

 


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4213
 

Ok, thank you for letting us know. We'll check this and update the plugin.


   
ReplyQuote
Share:
Scroll to top