Why Favicon have wrong url?

I have deployed my website onto GitHub Pages.
I am using my organisation account so my url is:

Not sure if it makes any difference but I had some strange problems with page links and had to remove / from my pages :

# Main menu pages
[[params.menu]]
name = "home"
url = ""

[[params.menu]]
name = "devs"
url = "devs"

[[params.menu]]
name = "tils"
url = "tils"

It worked. But now I have similar problem with my favicons.
They are inside static/favicon folder.

but when I deploy and inspect me page they have wrong url :

<!doctype html>
<html lang=en-us dir=ltr>
<head>
    <meta name=generator content="Hugo 0.145.0">
    <meta charset=utf-8>
    <meta name=viewport content="width=device-width">
    <link rel=icon type=image/ico href=https://moonlightinteractive.github.io/favicon/favicon.ico>
    <link rel=icon type=image/png sizes=16x16 href=https://moonlightinteractive.github.io/favicon/favicon-16x16.png>
    <link rel=icon type=image/png sizes=32x32 href=https://moonlightinteractive.github.io/favicon/favicon-32x32.png>
    <link rel=icon type=image/png sizes=192x192 href=https://moonlightinteractive.github.io/favicon/android-chrome-192x192.png>
    <link rel=apple-touch-icon sizes=180x180 href=https://moonlightinteractive.github.io/favicon/apple-touch-icon.png>
    <link rel=alternate type=application/rss+xml href=https://moonlightinteractive.github.io/mli.github.io/index.xml title="Moonlight Interactive">

Have no idea what’s wrong?



typo theme evaluates the faciconPath using absURL function which evaluates arguments starting with a / relative to the sites domain and port only.

just omit the leading slash there, too

see urls.AbsURL

I see! Thank you

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.