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
Comment #2
caspervoogt commentedComment #3
caspervoogt commentedComment #4
caspervoogt commentedComment #5
caspervoogt commentedrerolled patch for dev branch.
Comment #6
caspervoogt commentedComment #7
caspervoogt commentedComment #8
neeraprajapati commentedHello @caspervoogt, I am getting error while applying the patch. Please check it again and apply new patch.
Comment #9
caspervoogt commentedNew patch attached. The previous one went into the web root (not good!). This one is meant for inside the simple_social_icons project.
Comment #10
caspervoogt commentedComment #11
neeraprajapati commentedPatch is working fine.
Comment #13
mahaveer003 commentedThanks For the patch committed to dev branch.