Skip to content

Fixes baseurl

username-removed-236961 requested to merge fix-config-baseurl into master

Why

Blog posts urls aren't correct:

Example, newest post url: https://pages.gitlab.io/hugo/hugo/posts/newest/ (/hugo/ is repeating itself)

Correct path: https://pages.gitlab.io/hugo/posts/newest/

How to fix this

Baseurl (current, not working): "/hugo"

Baseurl (correct): "https://pages.gitlab.io/hugo/"

Working example

Config: https://gitlab.com/virtua-tests/hugo/blob/master/config.toml

Website: https://virtua-tests.gitlab.io/hugo/

Posts:

https://virtua-tests.gitlab.io/hugo/posts/newest/

https://virtua-tests.gitlab.io/hugo/posts/middle/

https://virtua-tests.gitlab.io/hugo/posts/oldest/


UPDATE: I just noticed someone else had spotted the broken links before: #2 (closed)

cc/ @axil

Merge request reports