# CSS path does not work after mainpage

**URL:** <https://discourse.gohugo.io/t/css-path-does-not-work-after-mainpage/42503>\
**Category:** support\
**Created:** [January 19, 2023, 1:35pm UTC](https://discourse.gohugo.io/t/css-path-does-not-work-after-mainpage/42503 "2023-01-19T13:35:19Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Attila](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Attila](https://discourse.gohugo.io/u/Attila)\
**Post date:** [January 19, 2023, 4:29pm UTC](https://discourse.gohugo.io/t/css-path-does-not-work-after-mainpage/42503/21 "2023-01-19T16:29:46Z")

</div>

Sorry, sent to much messages and i got blocked for today.  
I tryed with /img/favicon and img/favicon its same-same. Image on main page but not elswhere. Therefore must be similar issue than at the css file.

FIXED It !

Atm using:

```auto
    <link rel="stylesheet" href="{{ `css/styles.css` | relURL }}">
    <link rel="shortcut icon" type="image/png" href="{{ `/img/favicon.png` | relURL }}">
    <link rel="shortcut icon" sizes="64x64" href="{{ `/img/favicon.png` | relURL }}">
    <link rel="apple-touch-icon" href="{{ `/img/favicon.png` | relURL }}">

```

Atm removing the duplicate header and then its golden. Brb 👨‍💻

FIXED that to!

A HUUUGE and honest thank you for you guys! I got messed up to much after 6days on this problem only. I would never found it by my self. REALY thank you !

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [January 21, 2023, 4:30pm UTC](https://discourse.gohugo.io/t/css-path-does-not-work-after-mainpage/42503/22 "2023-01-21T16:30:05Z")

</div>

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

[Previous page](https://discourse.gohugo.io/t/css-path-does-not-work-after-mainpage/42503.md?page=1)
