URL building change dependin of the page

I’m all new with Hugo and need some help ('m probably missing Something big but can’t see what).

To give ou a bit of context, I’ve been using Hugo with pages to build a small website ( to gather information about an open source project. Source code can be find here on the website

My issue is the Following. I wrote a post with two links in it (one picture and one file) that lead to resources stored in static folder.

On the root page links are correctly formated but if I click the Read more link to dispay the post,the post name is added to the url

I try different confiuration without success and finaly came to fix the issue using absolute url

It doesn’t sound really satisfiying for me and I’ll will be happy to know what I’m doing wrong.

Thank you in advance for your help and your time.


Note that I removed some code exampleto comply with rules that limit number of url in a beginner to 2… If you need more info just let me know, I’ll put them on a reply


Can you give an example of how you are forming the links?

Hello pointyfar,

Links are formated like this in

![Asciidoc for LabVIEW functions palette](img/v1.0.0-function-palette.png)

[Asciidoc toolkit for LabVIEW v1.0.0](vip/

This is “interpreted” as (for the second ling for example):

On the main page: http://localhost:1313/open-source/asciidoc-toolkit/vip/ <-- corect

On the post page: http://localhost:1313/open-source/asciidoc-toolkit/post/2019-11-3-first-public-release/vip/

If you put /vip (forward slash first), it works everywhere, ne?

Sadly no :frowning:

You ought to link to the repo for this; I poked around your GitLab account and can’t find it.

I need something to play with, because I don’t link like that very often (no particular reason, just usage), but I think there is a way to make it do what you want. :slight_smile:

You can find code in www folder —>