We have been using this module on our site for about six months, and I do recall testing the LinkedIn sharing when we first installed it, and it worked then. Somehow it stopped working, though. I investigated this, and it appears to be due to the format of the sharing link. The format generated by this version of the module is;

https://www.linkedin.com/shareArticle?mini=true&url=www.somesite.com/som...

What worked for me was to change this to;

https://www.linkedin.com/shareArticle?mini=true&url=http://www.somesite....

(or https://, as the case may be).

I have patched the alpha release version of this module so it checks for http or https using getScheme(), and then uses that for the LinkedIn sharing link. Patch is attached.

Comments

caspervoogt created an issue. See original summary.

caspervoogt’s picture

caspervoogt’s picture

Status: Active » Needs review
caspervoogt’s picture

Version: 8.x-1.0-alpha1 » 8.x-2.x-dev
caspervoogt’s picture

rerolled patch for dev branch.

caspervoogt’s picture

StatusFileSize
new3.16 KB
caspervoogt’s picture

StatusFileSize
new6.58 KB
neeraprajapati’s picture

Hello @caspervoogt, I am getting error while applying the patch. Please check it again and apply new patch.

caspervoogt’s picture

New patch attached. The previous one went into the web root (not good!). This one is meant for inside the simple_social_icons project.

caspervoogt’s picture

neeraprajapati’s picture

Status: Needs review » Reviewed & tested by the community

Patch is working fine.

  • mahaveer003 committed 7d65cb5 on 8.x-2.x
    Issue #2879170 by caspervoogt: LinkedIn sharing not working at all
    
mahaveer003’s picture

Assigned: caspervoogt » Unassigned
Status: Reviewed & tested by the community » Fixed

Thanks For the patch committed to dev branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.