Rel. and abs. path in Hugo. GitLab pages doesn't work correct

You are more likely to receive a prompt and accurate response if you post a link to your project’s Git repository.

See Requesting Help.

Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.

Also, I just noticed this in your site configuration:

relativeUrls = true
canonifyurls = true

This is almost never a good idea, but again, we’d need to see your complete project to be sure. At some point I hope we deprecate canonifyUrls, and relativeUrls should only be used for serverless sites that are only navigable via the file system. Related documentation: