javascript 如何强制 Instagram 在 Safari 中而不是在应用程序浏览器中打开链接

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/46208993/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 06:31:50  来源:igfitidea点击:

How to force Instagram to open a link in Safari rather than the in app browser

javascripthtmlsafariinstagram

提问by Maxim Umansky

Instagram has added an inapp browser that automatically is used when links are opened. My websites need to be opened in a normal browser such as Safari (for iPhone). I am trying to figure out how to force it to redirect to a proper browser. If this link is opened through Instagram browser, it will request to be opened in safari, And I am trying to do this: http://ogurl.co/BOJ

Instagram 添加了一个应用内浏览器,在打开链接时会自动使用该浏览器。我的网站需要在普通浏览器中打开,例如 Safari(适用于 iPhone)。我想弄清楚如何强制它重定向到正确的浏览器。如果这个链接是通过 Instagram 浏览器打开的,它会要求在 safari 中打开,我正在尝试这样做:http: //ogurl.co/BOJ

回答by rjustin

To answer your question, the in app browser for Instagram or any app is a design decision made by the producer of the application and cannot be changed by the user unless configuration is provided.

为了回答您的问题,Instagram 或任何应用程序的应用程序内浏览器是由应用程序的生产者做出的设计决定,除非提供配置,否则用户无法更改。

If Instagram provides a setting to open the links in a different browser, that would be the only way to make this happen.

如果 Instagram 提供了在不同浏览器中打开链接的设置,那将是实现这一目标的唯一方法。