在导航应用角度其他页面时,IE浏览器图标消失 [英] IE favicon disappeared when navigating other page in angular application

查看:122
本文介绍了在导航应用角度其他页面时,IE浏览器图标消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现角应用程序的问题。
我有一个位置提供安装使用html5Mode真:

I found an issue with angular application. I have a the location provider setup to use the html5Mode true:

$locationProvider.html5Mode(true);

我注意到,网页间导航时,图标正在消失。
我使用IE11边缘文档模式。

I noticed that the favicon is disappearing when navigating between pages. I'm using IE11 edge document mode.

有谁碰到这样吗?

感谢

推荐答案

想到这里加入我的发现它可能是值得...

Thought it might be worth adding my findings here...

起初我有完全相同的问题,我无法得到的图标从根主页切换时留在页面上。我想肖恩的回答,但这并没有工作,要么让我在网上有点多看了一下,发现在所有现代浏览器,你可以使用PNG格式作为默认的图标,所以我试过了,它在最新的Chrome,最新的Firefox为我工作并通过本地主机,然后在边缘,一旦我要发表我的web服务器IE11。

At first I had the exact same problem, I couldn't get the favicon to stay on the page when changing from the root home page. I tried Shaun's answer and that didn't work either so I looked online a bit more and found that in all modern browsers you are able to use PNGs as your default favicon so I tried that and it worked for me in latest Chrome, latest Firefox and IE11 via localhost and then in Edge once I published to my webserver.

我希望这可以帮助别人出也有同样的问题。

I hope this helps anyone else out that was having the same issue.

这篇关于在导航应用角度其他页面时,IE浏览器图标消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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