简体   繁体   English

无法使用Chrome框架关闭IE

[英]Cannot close IE with chrome frame

I have an interesting issue when using IE and Chrome Frame. 使用IE和Chrome Frame时遇到一个有趣的问题。

When logging out from my site the url is given an extra '/#/', resulting in ' https://mysite.something.com/something/#/ '. 从我的网站注销时,URL会被赋予一个额外的“ /#/”,从而导致“ https://mysite.something.com/something/#/ ”。 This seems to, incredulously enough, hinder IE from closing when pressing the close button. 令人难以置信的是,这似乎在按下关闭按钮时阻止IE关闭。

My site is currently supporting chrome frame and would like to continue doing so. 我的网站目前支持chrome框架,并希望继续这样做。 Anyone know of a workaround? 有人知道解决方法吗? Any code on my site that could possibly be relevant? 我网站上是否有任何可能相关的代码?

Please help. 请帮忙。

Edit: Tested some more, and logout seems not the issue - manually adding '/#/' also makes me unable to close IE. 编辑:经过更多测试,注销似乎不是问题-手动添加'/#/'也使我无法关闭IE。

I ended up with the workaround to remove the hash sign when logging out. 我最终找到了注销时删除哈希符号的解决方法。 Not the prettiest but at least IE can now be closed. 不是最漂亮的,但至少现在可以关闭IE。

if (window.externalHost) {
    window.location.href = window.location.href.replace(/#.*/, '');
}

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

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