diff options
author | Bjørn Erik Pedersen <[email protected]> | 2020-10-05 17:56:28 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-10-05 22:20:00 +0200 |
commit | 5e2a547cb594b31ecb0f089b08db2e15c6dc381a (patch) | |
tree | b3b529ca40bc6ac2335c2c2bde782e1c964b8d63 /docs | |
parent | ee090c0940cdbf636e3a55a40b41612d92b9c62d (diff) | |
download | hugo-5e2a547cb594b31ecb0f089b08db2e15c6dc381a.tar.gz hugo-5e2a547cb594b31ecb0f089b08db2e15c6dc381a.zip |
Add force flag to server redirects config
Fixes #7778
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/en/getting-started/configuration.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/en/getting-started/configuration.md b/docs/content/en/getting-started/configuration.md index 076d9161c..9cbe988f1 100644 --- a/docs/content/en/getting-started/configuration.md +++ b/docs/content/en/getting-started/configuration.md @@ -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 |