[单击LinkedIn按钮时,单击图片不会传递整个链接,但是facebook链接可以正常工作。LinkedIn也曾经可以工作,但是现在不起作用了,自那以后有什么变化吗?
<div align="center">
<a target="_blank" rel="noopener noreferrer" href={"https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2FmyCompany.com%2Fanbefal%3Fcompany%3D" + encodeURI(this.state.company) + "%26token%3D" + this.state.token + "&src=sdkpreparse"} className="fb-xfbml-parse-ignore"><img alt="Share Facebook" style={{ width: '40px', marginRight: '50px' }} src={require('../static/img/icons/facebook.png')} /></a>
<a target="_blank" rel="noopener noreferrer" href={"https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2FmyCompany.com%2Fanbefal%3Fcompany%3D" + encodeURI(this.state.company) + "%26token%3D" + encodeURI(this.state.token) + "&src=sdkpreparse"} className="a2a_button_linkedin_share"><img alt="Share LinkedIn" style={{ width: '40px' }} src={require('../static/img/icons/linkedin.png')} /></a>
</div>
<br />
感谢您的任何帮助!
这只是您看到的预览。完整的URL仍可以完全显示-但仅在它们共享之后。
您仍然可以将特定链接(即,不仅是域名)传递给LinkedIn。不过,链接的preview似乎只是显示域,而不是完整的URL。不过,这只是一个预览:
但是现在查看LinkedIn上的对话,我共享URL后 ...
看! 尽管预览只列出了example.com,但实际共享将显示example.com/Your/Full/Specific/Page.html
。