I’m using relLangURL with an absolute URL: {{ “https://minnojs.github.io/blog” | relLangURL }}
When compiling with the server (hugo server -t docsy), this is compiled correctly as
But when building the site (hugo -t docsy) it prepends a leading slash rendering it incorrect.
I’m running Pop!_OS 20.10
This is the output of hugo version:
Hugo Static Site Generator v0.74.3/extended linux/amd64 BuildDate: 2020-07-29T18:11:24Z
Check your baseURL value in config.toml. I would not use an absolute URL in your layouts. just use the /blog-part and let Hugo deal with the current domain. On hugo server it’s always some form of localhost and on the production server the baseURL is used.