Skip to content

Commit

Permalink
fix(BaseHead): Add missing base href
Browse files Browse the repository at this point in the history
The commit fixes an issue in the BaseHead component where the base href was missing. This caused incorrect URLs for favicon and other resources. The fix adds the missing base href to ensure correct resource paths are used.
  • Loading branch information
SakuraIsayeki committed Jun 29, 2024
1 parent 584833e commit 9be9104
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nodsoft_moltenobsidian_web/src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const base = import.meta.env.BASE_URL ?? "/";
<!-- Global Metadata -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<base href={base} />
<link rel="icon" href={base + "favicon.ico"} />
<link rel="icon" type="image/png" sizes="512x512" href={base + "android-chrome-512x512.png"} />
<link rel="icon" type="image/png" sizes="192x192" href={base + "android-chrome-192x192.png"} />
Expand Down

0 comments on commit 9be9104

Please sign in to comment.