I was working with the .RelPermalink on the hugo server and when I exported it with the hugo command it wasn’t working at all.
The .RelPermalink are basically baseURL + .RelPermalink when expected behaviour would be just the relative path. Am I doing something incorrectly or is there a way to go around this?
We cannot know what is going on without seeing the project in question or if that is not possible then share a sample repo that reproduces the behavior you encountered.
The project is literally just listing .Site.RegularPages and using .RelPermalink.
Relative links appear as example.com/blog/1 instead of /blog/1, for example
I’ve already said what needs to be done.
Relative permalinks in projects I manage are rendered in the form of
Since you are reporting that on your end that does not work, people in this forum need to see the full context of the project, since this behavior can be due to several factors like global permalink configuration, hard-coded URLs in templates etc.
Also have a look at the Requesting Help topic or use the forum search.
Here is the project in Github, also I setted up the Github Pages so that you can see what’s the output.
baseURL in config.toml is incorrect. Please change:
baseURL = "datsgabs.github.io"
baseURL = "https://datsgabs.github.io/"
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.