简体   繁体   English

链接入共享按钮返回错误的URL

[英]Linked In share button returns wrong URL

I have the flowing LinkedIn share button: 我有流动的LinkedIn分享按钮:

<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 . 该URL是https://www.linkedin.com/shareArticle/?mini=true&url=&text=Description here

By comparison, this Facebook sharer does work : 相比之下,此Facebook共享者确实可以

<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? LinkedIn共享按钮中缺少什么?

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. 发生此错误是由于来自LinkedIn服务器端的一些技术问题。

So, technically you have nothing but to wait untill this issue is solved from linkedIn's end. 因此,从技术上讲,您只需要等到LinkedIn端解决此问题即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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