IE 10重定向URL破碎 [英] IE 10 Redirect URL Is Broken

查看:154
本文介绍了IE 10重定向URL破碎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站在Chrome,火狐,Opera和IE&LT工作正常的工作; 10.但在Win 8的IE 10,在登录后,我重定向到:


https://domain.com/(F(HWiLasqNvX0ANW4jLyE6n7Ey3U_mOFxXksL-oU95Z-wf3xQ-FGD8_szv-cuhNpoDD8cKM3SBX_PCipYO1ivV03YpPzouc8wJTe6Y2JAsUdyv_Nf76LLu0dlzcsRVSGJF0))/path/

当所有其他浏览器,我得到:


https://domain.com/path/

为什么IE浏览器插入URL中的巨人frackin字符串?更多细节:


  • 该网站的ASP.NET MVC 4个网站

  • 托管在IIS 7.5

  • 托管在Windows Server 2008

  • 使用窗体身份验证

  • 登陆界面后,我重定向到上面的位置。


解决方案

应用修复


  

在默认情况下,ASP.NET使用嗅探技术,为用户代理字符串
  检测浏览器。该浏览器定义文件覆盖一定范围
  的浏览器版本。然而,当版本号增加,ASP.NET
  可能不使用用户代理识别浏览器的新版本
  串。在这种情况下,ASP.NET可能处理这些版本作为一个
  未知的浏览器。例如,ASP.NET无法识别Windows
  Internet Explorer的10具有下列用户代理字符串:


 的Mozilla / 5.0(兼容; MSIE 10.0; Windows NT的6.1;三叉戟/ 6.0)

I work on a website that works fine in Chrome, Firefox, Opera, and IE < 10. But in IE 10 on Win 8, after logging in, I get redirected to:

https://domain.com/(F(HWiLasqNvX0ANW4jLyE6n7Ey3U_mOFxXksL-oU95Z-wf3xQ-FGD8_szv-cuhNpoDD8cKM3SBX_PCipYO1ivV03YpPzouc8wJTe6Y2JAsUdyv_Nf76LLu0dlzcsRVSGJF0))/path/

When in all other browsers I get:

https://domain.com/path/

Why does IE insert that giant frackin string in the URL? More details:

  • The site an ASP.NET MVC 4 site
  • Hosted in IIS 7.5
  • Hosted on Windows Server 2008
  • Using forms authentication
  • After login screen, am redirecting to the above location.

解决方案

Apply the Hotfix

By default, ASP.NET uses sniffing technology for the user agent string to detect browsers. The browser definition files cover a certain range of browser versions. However, as the version numbers increase, ASP.NET might not recognize new versions of a browser by using the user agent string. In this case, ASP.NET might handle these versions as an unknown browser. For example, ASP.NET cannot recognize Windows Internet Explorer 10 that has the following user agent string:

Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)

这篇关于IE 10重定向URL破碎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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