pages: Add warning on :splat redirects only working last in path

This commit is contained in:
Artyom Bologov 2026-07-21 23:42:56 +04:00
parent 6ffc30e615
commit eb35b4a18c

View file

@ -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/`