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: Add reroutes for routes linked from outside blogs to real URLs #5611

Merged
merged 2 commits into from
Jan 19, 2024
Merged
Changes from 1 commit
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
270 changes: 270 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,276 @@
status = 301
force = true

[[redirects]]
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a repeat of the one just above it

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed d22a9b3 (#5611)

from = "/guides/cloud/debugging/recorded-runs"
to = "/guides/cloud/recorded-runs"
status = 301
force = true

[[redirects]]
from = "/api/commands"
to = "/api/table-of-contents"
status = 301
force = true

[[redirects]]
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if there's a quick way to test this, but would the previous entry suffice without another including the trailing slash?

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 don't know. Figured this covers it anyhow

from = "/api/commands/"
to = "/api/table-of-contents"
status = 301
force = true

[[redirects]]
from = "/api/commands/route"
to = "/api/commands/intercept"
status = 301
force = true

[[redirects]]
from = "/api/commands/route2"
to = "/api/commands/intercept"
status = 301
force = true

[[redirects]]
from = "/api/commands/server"
to = "/api/commands/intercept"
status = 301
force = true

[[redirects]]
from = "/api/cypress-api/cypress-server"
to = "/api/commands/intercept"
status = 301
force = true

[[redirects]]
from = "/api/cypress-api/guides/component-testing/introduction"
to = "/guides/component-testing/overview"
status = 301
force = true

[[redirects]]
from = "/api/introduction/api"
to = "/api/table-of-contents"
status = 301
force = true

[[redirects]]
from = "/api/utilities/moment"
to = "/guides/overview/why-cypress"
status = 301
force = true

[[redirects]]
from = "/coverage"
to = "/guides/tooling/code-coverage"
status = 301
force = true

[[redirects]]
from = "/dashboard-service"
to = "/guides/cloud/introduction"
status = 301
force = true

[[redirects]]
from = "/dashboard/overview/runs-dashboard"
to = "/guides/cloud/recorded-runs"
status = 301
force = true

[[redirects]]
from = "/docs/all-example-apps"
to = "/examples/applications"
status = 301
force = true

[[redirects]]
from = "/examples/examples/applications"
to = "/examples/applications"
status = 301
force = true

[[redirects]]
from = "/examples/examples/tutorials"
to = "/examples/tutorials"
status = 301
force = true

[[redirects]]
from = "/examples/examples/workshop"
to = "/examples/workshop"
status = 301
force = true

[[redirects]]
from = "/guides/component-testing/angular/quickstart"
to = "/guides/component-testing/angular/overview"
status = 301
force = true

[[redirects]]
from = "/guides/component-testing/react/quickstart"
to = "/guides/component-testing/react/overview"
status = 301
force = true

[[redirects]]
from = "/guides/component-testing/svelte/quickstart"
to = "/guides/component-testing/svelte/overview"
status = 301
force = true

[[redirects]]
from = "/guides/component-testing/vue/quickstart"
to = "/guides/component-testing/vue/overview"
status = 301
force = true

[[redirects]]
from = "/guides/core-concepts/dashboard-service"
to = "/guides/cloud/introduction"
status = 301
force = true

[[redirects]]
from = "/guides/core-concepts/launching-browsers"
to = "/guides/guides/launching-browsers"
status = 301
force = true

[[redirects]]
from = "/guides/getting-started"
to = "/guides/getting-started/installing-cypress"
status = 301
force = true

[[redirects]]
from = "/getting-started/installing-cypress.md"
to = "/guides/getting-started/installing-cypress"
status = 301
force = true

[[redirects]]
from = "/getting-started/why-cypress"
to = "guides/overview/why-cypress"
status = 301
force = true

[[redirects]]
from = "/guides/guides/continuous-integration"
to = "/guides/continuous-integration/introduction"
status = 301
force = true

[[redirects]]
from = "/guides/guides/plugins-guide"
to = "/api/plugins/writing-a-plugin"
status = 301
force = true

[[redirects]]
from = "/guides/guides/reporters"
to = "/guides/tooling/reporters"
status = 301
force = true

[[redirects]]
from = "/guides/installing-and-running"
to = "/guides/getting-started/installing-cypress"
status = 301
force = true

[[redirects]]
from = "/guides/references/known-issues"
to = "/guides/references/trade-offs"
status = 301
force = true

[[redirects]]
from = "/guides/tooling/intelligent-code-completion"
to = "/guides/tooling/IDE-integration"
status = 301
force = true

[[redirects]]
from = "/guides/web-security"
to = "/guides/guides/web-security"
status = 301
force = true

[[redirects]]
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably fine to load the IDE section since it's related. But there is a /guides/tooling/ide-integration/#Intelligent-Code-Completion section if we wanted to deeplink

Copy link
Member Author

Choose a reason for hiding this comment

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

Yah I didn't want to do any deep linking because that's more likely to get out of date.

from = "/intelligent-code-completion"
to = "/guides/tooling/IDE-integration"
status = 301
force = true

[[redirects]]
from = "/ja"
to = "/guides/overview/why-cypress"
status = 301
force = true

[[redirects]]
from = "/test-runner"
to = "/guides/core-concepts/cypress-app"
status = 301
force = true

[[redirects]]
from = "/why-cypress"
to = "/guides/overview/why-cypress"
status = 301
force = true

[[redirects]]
from = "/writeFile"
to = "/api/commands/writefile"
status = 301
force = true

[[redirects]]
from = "/zh-cn"
to = "/guides/overview/why-cypress"
status = 301
force = true

[[redirects]]
from = "/zh-cn/guides/getting-started/installing-cypress"
to = "/guides/getting-started/installing-cypress"
status = 301
force = true

[[redirects]]
from = "/zh-cn/guides/guides/command-line"
to = "/guides/guides/command-line"
status = 301
force = true

[[redirects]]
from = "/zh-cn/guides/guides/module-api"
to = "/guides/guides/module-api"
status = 301
force = true

[[redirects]]
from = "/zh-cn/guides/overview/why-cypress"
to = "/guides/overview/why-cypress"
status = 301
force = true

[[redirects]]
from = "/zh-cn/guides/references/assertions"
to = "/guides/references/assertions"
status = 301
force = true

[[redirects]]
from = "/zh-cn/guides/references/configuration"
to = "/guides/references/configuration"
status = 301
force = true

[[plugins]]
package = "@netlify/plugin-sitemap"

Expand Down