diff --git a/src/composables/useHtmlExport.js b/src/composables/useHtmlExport.js
index 21c2d47..dd03961 100644
--- a/src/composables/useHtmlExport.js
+++ b/src/composables/useHtmlExport.js
@@ -98,7 +98,8 @@ function renderSessionItemsHtml(log) {
async function fetchIconAsBase64() {
try {
- const res = await fetch('/icon.svg')
+ // Resolve against BASE_URL so subdirectory deploys (base: './') still find the icon
+ const res = await fetch(import.meta.env.BASE_URL + 'icon.svg')
if (!res.ok) return null
const text = await res.text()
const bytes = new TextEncoder().encode(text)