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

chore: added redirects #168

Merged
merged 3 commits into from
Mar 23, 2022
Merged

chore: added redirects #168

merged 3 commits into from
Mar 23, 2022

Conversation

harish-sethuraman
Copy link
Member

Comment on lines 15 to 20
/docs https://eslint.org/ 301!
/docs/user-guide/rules https://eslint.org/docs/rules 301!
/docs/rules/id-blacklist https://eslint.org/docs/rules/id-denylist 301!

/docs/0.24.1/command-line-interface https://eslint.org/docs/user-guide/command-line-interface 301!
/docs/0.24.1/configuring https://eslint.org/docs/user-guide/configuring 301!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we don't need these internal redirects for docs since we will have a separate website for docs.

/cc @nzakas can you confirm?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we don't need these internal redirects for docs since we will have a separate website for docs.

Thought we might later on update the links. For now wanted to add proper working links

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now all we need is /docs/* redirecting to eslint.org/docs/*

Later we can change to docs.eslint.org/*

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to be sure the docs go to the correct location.

/docs/* https://eslint.org/ 301!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/docs/* https://eslint.org/ 301!
/docs/* https://eslint.org/docs/:splat 302!

We need to cover all docs URLs and definitely don’t want this to be permanent.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for contributing.

@snitin315 snitin315 requested a review from nzakas March 22, 2022 03:20
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@nzakas nzakas merged commit 36a8da8 into eslint:main Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants