Skip to content

[Bug]: favicon.ico not resolved correctly on paths #898

@xai

Description

@xai

What happened?

For subpages, such as our https://theia-cloud.io/support/ or https://theia-cloud.io/documentation/, we get 404 responses for a favicon.ico.

What did you expect to happen?

favicon.ico should be looked up at the site root instead of the current path.

How can we reproduce this issue?

Inspect the html code of a path and find a line such as this:

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">

instead of

<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">

Is there anything else we need to know about?

The reason is that the shortcut icon link in the syna theme partial lacks the relURL filter, causing 404 errors on subpages, where the browser would look for favicon.ico relative to the current path rather than the site root.

Syna theme version

No response

Hugo version

No response

Versions of other dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions