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

fix(v2): do not create route for document that serve as docs home page #2861

Merged
merged 3 commits into from
Jun 3, 2020

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Jun 1, 2020

Motivation

Resolve #2830.

When we set the docs home page, we have two duplicate pages, for example, in the case of https://v2.docusaurus.io/:

These two pages contain the same content (document of "introduction"), this is not good for SEO. I missed this important thing and therefore did not define the canonical URL for the /docs URL. However, after discussing with one our user, we decided it was best not to create a separate route for document at all, which serves as docs home page.

Yes, this is a BC, but I guess we can recommend in release notes that our user add a redirect using our official plugin to inform search engines about this change.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Snapshots and preview.

On preview https://deploy-preview-2861--docusaurus-2.netlify.app/docs/introduction URL will not work.

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@lex111 lex111 added pr: breaking change Existing sites may not build successfully in the new version. Description contains more details. pr: bug fix This PR fixes a bug in a past release. labels Jun 1, 2020
@lex111 lex111 requested a review from yangshun as a code owner June 1, 2020 11:56
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 1, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit d59b767

https://deploy-preview-2861--docusaurus-2.netlify.app

@lex111
Copy link
Contributor Author

lex111 commented Jun 3, 2020

cc @yangshun

@yangshun yangshun merged commit e68b81b into master Jun 3, 2020
@lex111 lex111 deleted the lex111/iss2830 branch June 3, 2020 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: breaking change Existing sites may not build successfully in the new version. Description contains more details. pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding docs home page to the sidebar
4 participants