Skip to content

feat: redirect docs/v9.x to docs/latest #573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/static/redirects.njk
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ eleventyExcludeFromCollections: true
/docs/latest/user-guide/core-concepts /docs/latest/use/core-concepts 301!
/docs/latest/user-guide/configuring/ /docs/latest/use/configure/ 301!
/docs/latest/user-guide/configuring/configuration-files-new /docs/latest/use/configure/configuration-files-new 301!
/docs/latest/user-guide/configuring/configuration-files /docs/latest/use/configure/configuration-files 301!
/docs/latest/user-guide/configuring/configuration-files /docs/latest/use/configure/configuration-files 301!
/docs/latest/user-guide/configuring/language-options /docs/latest/use/configure/language-options 301!
/docs/latest/user-guide/configuring/rules /docs/latest/use/configure/rules 301!
/docs/latest/user-guide/configuring/plugins /docs/latest/use/configure/plugins 301!
Expand Down Expand Up @@ -107,6 +107,10 @@ eleventyExcludeFromCollections: true
/docs/v8.x/* https://eslint.org/docs/v8.x/:splat 302!
{% endif %}

# Docs for the latest v9.x
# Redirect to latest docs while v9.x is the latest release
/docs/v9.x/* https://eslint.org/docs/latest/:splat 302!

# Docs for the current prerelease
# As there is currently no active prerelease, redirect to latest docs
/docs/next/* https://eslint.org/docs/latest/:splat 302!
Expand Down
Loading