mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
config: Fix server.redirects.fromRe being ignored unless server.redirects.from is also set
This commit is contained in:
@@ -450,7 +450,7 @@ func (c *CacheBuster) CompileConfig(logger loggers.Logger) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r Redirect) IsZero() bool {
|
func (r Redirect) IsZero() bool {
|
||||||
return r.From == ""
|
return r.From == "" && r.FromRe == ""
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Reference in New Issue
Block a user