使用LinkedIn Share插件在IE上发布 [英] Issue on IE with LinkedIn Share plugin

查看:127
本文介绍了使用LinkedIn Share插件在IE上发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的客户工作,在那里我们使用了LinkedIn共享插件(

I am working for my client and there we have used LinkedIn share plugin (https://developer.linkedin.com/plugins/share) but we have been facing an issue with this plugin while using MS Internet Explorer. When the user clicks on the LinkedIn share plugin on IE, another popup window opens, this popup works fine over other browsers like Firefox, Chrome however on IE (with most users on IE11 and IE Edge), it shows an alert saying: "The webpage you are viewing is trying to close the window." If user clicks on "No" then it redirects to LinkedIn 404/Page not found (https://www.linkedin.com/404). We are looking for your help to investigate the issue to find the root cause and get it addressed.

Any help in fixing this issue will be greatly appreciated.

解决方案

The issue is that you're relying on the SDK and the plugin JS library for making and generating the button. That means all of LinkedIn's JS libs could be do any number of things to make the button appear and behave as it does. To have a URL-sharing link to Linkedin, all you really ought to need is...

https://www.linkedin.com/sharing/share-offsite/?url={url}

Then you can just make any button, using any HTML, CSS, or JavaScript that you like, and hyperlink it to allow sharing of a page. Like so...

<a href="https://www.linkedin.com/sharing/share-offsite/?url={url}" target="_blank">Share on LinkedIn</a>

Source: Microsoft LinkedIn Share URL Documentation.

If you are interested in a regularly maintained github project that keeps track of this so you don't have to, check it out! Social Share URLs

这篇关于使用LinkedIn Share插件在IE上发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆