Skip to content

Commit 41e61b0

Browse files
anoadragon453richvdh
authored andcommitted
Set canonifyURLs to true (#3037)
This fixes absolute path links when we're hosting the site under a different path other than /.
1 parent aec5d28 commit 41e61b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
baseURL = "/"
22
title = "Matrix Specification"
33

4+
# Prepends absolute URLs with the baseURL. Useful when hosting on non-root
5+
# paths, such as /unstable.
6+
canonifyURLs = true
7+
48
enableRobotsTXT = true
59

610
# Hugo allows theme composition (and inheritance). The precedence is from left to right.

0 commit comments

Comments
 (0)