In IE11: Icon shows up in home page on load but when I navigate to other pages, rendered icon is replaced by default IE icon. In Chrome: It works fine and icon is rendered on all routes.
Here are some of approaches I tried by referring to articles in Medium, stack overflow etc., which wasn’t not helpful.
I tried to keep absolute path(to test this in local), server name at different instances in index.html but it didn’t worked.
Also, I replaced base64 code of image and server url in above href attribute so it can access/locate favicon.
I added paths in assets array of angular.json file
"assets": [
"src/assets",
"src/locale",
"src/assets/favicon32x32.png",
"src/assets/favicon16x16.png",
"src/assets/favicon32x32.ico",
"src/assets/favicon16x16.ico"
]
I tried to modify base url in index.html and CLI didn’t build. Also, I tried modify polyfill.ts and installed npm package.
I inspected other angular apps/website by opening in IE11(e.g., angular.io or gmail.com). here too problem exists.
Kindly please help/guide me in resolving above issue. Also, please let me know which approach should I take or refer to, to get to the solution.
Here is my html metadata inside head tag inside index.html
<!DOCTYPE html>
<script></script>
<html>
<head>
<base href="/" />
<title>AB CORP</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="icon" href="/src/assets/images/favicons/favicon-16x16.ico" sizes="16x16" type="image/x-icon" media="all" />
<link rel="icon" href="/src/assets/images/favicons/favicon-32x32.ico" sizes="32x32" type="image/x-icon" media="all" />
</head>
<body class="ls">
<app>
<div class="lf-splash">
<div class="lf-message">Loading, please wait...</div>
<i class="fa fa-spinner fa-spin"></i>
</div>
</app>
</body>
</html>