Closed okash1n closed 6 months ago
Wiki に記載の方法では相対パスになっているので、トップページでしか favicon が表示されません。
不具合を再現する方法を下記の例のように箇条書きで記述します。
/public/favicon.svg
/layout/Layout.astro
<head>
<link rel="icon" href="favicon.png">
以下のように変更すると全部のページで表示されました
<link rel="icon" href={getStaticFilePath('/favicon.svg')} />
ありがとうございます。おっしゃる通りです。Wikiを修正しました。
不具合の概要
Wiki に記載の方法では相対パスになっているので、トップページでしか favicon が表示されません。
再現方法
不具合を再現する方法を下記の例のように箇条書きで記述します。
/public/favicon.svg
を配置し、/layout/Layout.astro
の<head>
内に<link rel="icon" href="favicon.png">
を追記追加情報
以下のように変更すると全部のページで表示されました
<link rel="icon" href={getStaticFilePath('/favicon.svg')} />