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

Point Google SEO correctly to translated pages #1946

Closed
bahmutov opened this issue Aug 1, 2019 · 0 comments · Fixed by #2593
Closed

Point Google SEO correctly to translated pages #1946

bahmutov opened this issue Aug 1, 2019 · 0 comments · Fixed by #2593

Comments

@bahmutov
Copy link
Contributor

bahmutov commented Aug 1, 2019

Related to #1940 and #1686

We have disabled Google from crawling non-English documentation, but that is suboptimal. Instead we can for example add links to alternative language pages. For example, point "Why Cypress" English page and all translations with header tags like this

<head>
  <title>Why Cypress</title>
  <link rel="alternate" hreflang="ja"
        href="https://docs.cypress.io/ja/guides/overview/why-cypress.html" />
  <link rel="alternate" hreflang="zh-cn"
        href="https://docs.cypress.io/zh-cn/guides/overview/why-cypress.html" />
  <link rel="alternate" hreflang="zh"
        href="https://docs.cypress.io/zh-cn/guides/overview/why-cypress.html" />
  <link rel="alternate" hreflang="en"
        href="https://docs.cypress.io/guides/overview/why-cypress.html" />
  <link rel="alternate" hreflang="x-default"
        href="https://docs.cypress.io/guides/overview/why-cypress.html" />
</head>

Documentation: https://support.google.com/webmasters/answer/189077

sunsheeppoplar added a commit to sunsheeppoplar/cypress-documentation that referenced this issue Mar 9, 2020
sunsheeppoplar added a commit to sunsheeppoplar/cypress-documentation that referenced this issue Mar 9, 2020
jennifer-shehane pushed a commit that referenced this issue Mar 9, 2020
* Adds Shortlinks for Supported Langugages

- updated CONTRIBUTING with additional instructions
- there's some potentially superfluous cy.visit being called in the first descibe block in the i18n test spec, but figured the optimization here might not matter?
- closes #1714

* Point Google SEO to Translated Pages

- closes #1946
jennifer-shehane pushed a commit that referenced this issue Mar 9, 2020
* add tips for browser detection (#2591)

* Point Google SEO to Translated Pages, closes #1946 (#2593)

* Adds Shortlinks for Supported Langugages

- updated CONTRIBUTING with additional instructions
- there's some potentially superfluous cy.visit being called in the first descibe block in the i18n test spec, but figured the optimization here might not matter?
- closes #1714

* Point Google SEO to Translated Pages

- closes #1946

* chore(deps): Update dependency @types/jest to version 25.1.4 🌟 (#2592)

Co-authored-by: Renovate Bot <[email protected]>

* Add missing word to best-practices.md (#2590)

I noticed a missing word in a sentence.

* Add two closing parenthesis on runOn ignoreOn (#2589)

* change cypress cache list command

Co-authored-by: Abner Yang <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Kyle <[email protected]>
Co-authored-by: Simone Mariotti <[email protected]>
flotwig added a commit that referenced this issue Mar 16, 2020
* 4.2.0 release

* Document Electron --headed video recording (#2568)

* Add 4.2.0 changelog file

* Add note about reserved CYPRESS_INTERNAL_ENV env var (#2587)

* change cypress cache list command (#2598)

* add tips for browser detection (#2591)

* Point Google SEO to Translated Pages, closes #1946 (#2593)

* Adds Shortlinks for Supported Langugages

- updated CONTRIBUTING with additional instructions
- there's some potentially superfluous cy.visit being called in the first descibe block in the i18n test spec, but figured the optimization here might not matter?
- closes #1714

* Point Google SEO to Translated Pages

- closes #1946

* chore(deps): Update dependency @types/jest to version 25.1.4 🌟 (#2592)

Co-authored-by: Renovate Bot <[email protected]>

* Add missing word to best-practices.md (#2590)

I noticed a missing word in a sentence.

* Add two closing parenthesis on runOn ignoreOn (#2589)

* change cypress cache list command

Co-authored-by: Abner Yang <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Kyle <[email protected]>
Co-authored-by: Simone Mariotti <[email protected]>

* begin updating changelog with closed issues

* Finish current changelog

* add correct ANSI capitalization to textlintrc

* Add newly closed issue to changleog + make wording a bit less repetitive

* Add 2 more closed issues to changelog

* Add another closed issue to changelog

Co-authored-by: Jennifer Shehane <[email protected]>
Co-authored-by: Gleb Bahmutov <[email protected]>
Co-authored-by: Abner Yang <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Kyle <[email protected]>
Co-authored-by: Simone Mariotti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant