简体   繁体   中英

Linked In share button returns wrong URL

I have the flowing LinkedIn share button:

<a href="#" onclick="window.open( 'http://www.linkedin.com/shareArticle?mini=true&url='+encodeURIComponent('{{ .Permalink }}')+'&text='+encodeURIComponent('{{.Params.pageDescription}}'), 'sharer', 'width=626,height=436,top='+((screen.height - 436) / 2)+',left='+((screen.width - 626)/2 )); return false;" class="rounded-circle"><i class="fab fa-linkedin-in"></i></a>

Instead of sharing the page I get the "It's not you, it's us" message.

The URL is https://www.linkedin.com/shareArticle/?mini=true&url=&text=Description here .

By comparison, this Facebook sharer does work :

<a href="#" onclick="window.open( 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent('{{ .Permalink }}') +'&title=' + encodeURIComponent('{{.Params.pageH1small}} - {{.Params.pageH1}}') + encodeURIComponent('{{.Params.pageDescription}}'), 'facebook-share-dialog', 'width=626,height=436,top='+((screen.height - 436) / 2)+',left='+((screen.width - 626)/2 )); return false;" class="rounded-circle"><i class="fab fa-facebook-f"></i></a>

What is missing from the LinkedIn share button?

The error message says it: It's not you, It's us. This error is pretty common when there is a problem from the server's end.

It means there is no mistake from your side that is causing this error. The error happened due to some technical issues at server side from linkedIn.

So, technically you have nothing but to wait untill this issue is solved from linkedIn's end.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM