mirror of
https://codeberg.org/Codeberg/Documentation.git
synced 2026-08-15 14:53:29 -07:00
pages: Add warning on :splat redirects only working last in path
This commit is contained in:
parent
6ffc30e615
commit
eb35b4a18c
1 changed files with 6 additions and 0 deletions
|
|
@ -63,4 +63,10 @@ Redirects every path under `/articles` to `/posts` while keeping the path.
|
|||
/articles/* /posts/:splat 302
|
||||
```
|
||||
|
||||
{% admonition "Warning" %}
|
||||
|
||||
`:splat` should always be the last element of the path, so something like `/*/ /:splat.html` is not a valid rule.
|
||||
|
||||
{% endadmonition %}
|
||||
|
||||
Example: `/articles/2022/10/12/post-1/` → `/posts/2022/10/12/post-1/`
|
||||
|
|
|
|||
Loading…
Reference in a new issue