Skip to content
Draft
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
7 changes: 5 additions & 2 deletions src/static/redirects.njk
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ eleventyExcludeFromCollections: true
/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!
{% if site.locals.docs_next %}
/docs/next/* https://{{ site.locals.docs_next }}/:splat 200!
{% else %}
/docs/next/* https://eslint.org/docs/next/:splat 302!
{% endif %}

{% if site.locals.blog == false %}
# Redirect blog back to English site
Expand Down