From ecfd57c5045905cee6c3396a27b98d829fa9446a Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Tue, 2 Mar 2021 11:03:25 +0000 Subject: [PATCH] Set canonifyURLs to true (#3037) This fixes absolute path links when we're hosting the site under a different path other than /. --- config.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.toml b/config.toml index 963d2fcd..1e4cb70e 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,10 @@ baseURL = "/" title = "Matrix Specification" +# Prepends absolute URLs with the baseURL. Useful when hosting on non-root +# paths, such as /unstable. +canonifyURLs = true + enableRobotsTXT = true # Hugo allows theme composition (and inheritance). The precedence is from left to right.