Unverified Commit 2425f470 authored by Alex Vilchis's avatar Alex Vilchis Committed by GitHub

(docs) Add `permanent` property in redirect object (#28852)



I found that an example for a redirect rule in the documentation doesn't have the required property `permanent`. I noticed this because I tried to use that same rule but building fails with the following message:

```
`permanent` is not set to `true` or `false` for route {"source":"/:path((?!another-page$).*)","has":[{"type":"host","value":"example.com"}],"destination":"/another-page"}


Error: Invalid redirect found
```

My PR simply adds the missing `permanent` property as false to be consistent with the rest.

## Documentation / Examples

- [x] Make sure the linting passes
parent 947db315
......@@ -208,6 +208,7 @@ module.exports = {
value: 'example.com',
},
],
permanent: false,
destination: '/another-page',
},
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment