Skip to content
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

feat: redirect docs/next to docs/latest #543

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/static/redirects.njk
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,8 @@ eleventyExcludeFromCollections: true
{% endif %}

# Docs for the current prerelease
{% 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 %}
# As there is currently no active prerelease, redirect to latest docs
/docs/next/* https://eslint.org/docs/latest/:splat 302!

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