Skip to content

Commit

Permalink
Merge pull request #1426 from publiccodenet/blog-redirect-info
Browse files Browse the repository at this point in the history
Note the exception with the blog repo
  • Loading branch information
Ainali authored Jan 8, 2024
2 parents 455bbf4 + 0ebaf4a commit 3f949e3
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 3f949e3

Please sign in to comment.