aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-10-05 17:56:28 +0200
committerBjørn Erik Pedersen <[email protected]>2020-10-05 22:20:00 +0200
commit5e2a547cb594b31ecb0f089b08db2e15c6dc381a (patch)
treeb3b529ca40bc6ac2335c2c2bde782e1c964b8d63 /config
parentee090c0940cdbf636e3a55a40b41612d92b9c62d (diff)
downloadhugo-5e2a547cb594b31ecb0f089b08db2e15c6dc381a.tar.gz
hugo-5e2a547cb594b31ecb0f089b08db2e15c6dc381a.zip
Add force flag to server redirects config
Fixes #7778
Diffstat (limited to 'config')
-rw-r--r--config/commonConfig.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/commonConfig.go b/config/commonConfig.go
index ac82dc3bc..522ced854 100644
--- a/config/commonConfig.go
+++ b/config/commonConfig.go
@@ -184,6 +184,7 @@ type Redirect struct {
From string
To string
Status int
+ Force bool
}
func (r Redirect) IsZero() bool {