Add force flag to server redirects config

Fixes #7778
This commit is contained in:
Bjørn Erik Pedersen
2020-10-05 17:56:28 +02:00
parent ee090c0940
commit 5e2a547cb5
3 changed files with 30 additions and 11 deletions

View File

@@ -360,10 +360,10 @@ Note that a `status` code of 200 will trigger a [URL rewrite](https://docs.netli
from = "/myspa/**"
to = "/myspa/"
status = 200
force = false
{{< /code-toggle >}}
{{< new-in "0.76.0" >}} Setting `force=true` will make a redirect even if there is existing content in the path. Note that before Hugo 0.76 `force` was the default behaviour, but this is inline with how Netlify does it.
## Configure Title Case