Skip to content

Commit b381f94

Browse files
committed
Reference favicon.icon and manifest.json from / to ensure that they are loaded even if the URL has a directory in it.
1 parent 2e4bac3 commit b381f94

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

web-ui/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="favicon.ico" />
5+
<link rel="icon" href="/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
88
<meta
@@ -14,8 +14,10 @@
1414
manifest.json provides metadata used when your web app is installed on a
1515
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
1616
-->
17-
<link rel="manifest" href="manifest.json" crossorigin="use-credentials" />
17+
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials" />
1818
<!--
19+
The use of %PUBLIC_URL% in the tags above causes a "URI malformed" error.
20+
1921
Notice the use of %PUBLIC_URL% in the tags above.
2022
It will be replaced with the URL of the `public` folder during the build.
2123
Only files inside the `public` folder can be referenced from the HTML.

0 commit comments

Comments
 (0)