繁体   English   中英

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

[英]Linked In share button returns wrong URL

我有流动的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>

我没有分享页面,而是得到“不是你,是我们”消息。

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

相比之下,此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>

LinkedIn共享按钮中缺少什么?

错误消息说: 不是你,是我们。 当服务器端出现问题时,此错误非常常见。

这意味着没有错误引起您的错误。 发生此错误是由于来自LinkedIn服务器端的一些技术问题。

因此,从技术上讲,您只需要等到LinkedIn端解决此问题即可。

暂无
暂无

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

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