Skip to content

Commit

Permalink
Note the exception with the blog repo
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Ainali <jan@publiccode.net>
Co-authored-by: clausmullie <claus@publiccode.net>
  • Loading branch information
3 people committed Jan 8, 2024
1 parent 455bbf4 commit 0ebaf4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion activities/documentation/move-merge-delete-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ redirect_from:
- [url link 3]
```

Note: the redirect url should be the file path without `.md` or `.html` extension.
The redirect url should typically be the file path without `.md` or `.html` extension.
The exception is for blog posts in the `blog` repository, where the blog post paths include the category and date, and the redirect _should_ include `.html` at the end.
Thus, for blog posts the redirect needs to be of the form `/category/yyyy/mm/dd/the-post-slug.html`.

## Redirecting pages

Expand Down

0 comments on commit 0ebaf4a

Please sign in to comment.