Skip to content

Commit

Permalink
Merge pull request #142 from buildkite/fix-broken-search-engine-links…
Browse files Browse the repository at this point in the history
…-stemming-from-pipelines-url-restructuring

Refactor 'Security' overview landing page URL and implement redirects missed in initial major Pipelines docs URL restructure.
  • Loading branch information
gilesgas authored Nov 26, 2024
2 parents 5e6f1b2 + 10547d7 commit c974697
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/landing_page_pipelines/_core_concepts.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{
title: "Security",
content: "Best practices for mitigating risk and securing your build infrasturcture.",
to: "/docs/pipelines/security/overview",
to: "/docs/pipelines/security",
icon: "pipelines/icon_pipelines_security.svg"
}
],
Expand Down
17 changes: 16 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,22 @@
get "/docs/how-tos/gitlab", to: redirect("/docs/pipelines/source-control/gitlab")
get "/docs/how-tos/deploying-to-heroku", to: redirect("/docs/deployments/deploying-to-heroku")
get "/docs/how-tos/migrating-from-bamboo", to: redirect("/docs/pipelines/migration/from-bamboo")
get "/docs/integrations", to: redirect("/docs/pipelines/integrations")
get "/docs/integrations/amazon-eventbridge", to: redirect("/docs/pipelines/integrations/other/amazon-eventbridge")
get "/docs/integrations/artifactory", to: redirect("/docs/pipelines/integrations/other/artifactory")
get "/docs/integrations/bitbucket", to: redirect("/docs/pipelines/source-control/bitbucket")
get "/docs/integrations/bitbucket-server", to: redirect("/docs/pipelines/source-control/bitbucket-server")
get "/docs/integrations/build-status-badges", to: redirect("/docs/pipelines/integrations/other/build-status-badges")
get "/docs/integrations/cc-menu", to: redirect("/docs/pipelines/integrations/other/cc-menu")
get "/docs/integrations/docker-hub", to: redirect("/docs/pipelines/integrations/other/docker-hub")
get "/docs/integrations/git", to: redirect("/docs/pipelines/source-control/git")
get "/docs/integrations/github", to: redirect("/docs/pipelines/source-control/github")
get "/docs/integrations/github-enterprise", to: redirect("/docs/pipelines/source-control/github-enterprise")
get "/docs/integrations/gitlab", to: redirect("/docs/pipelines/source-control/gitlab")
get "/docs/integrations/pagerduty", to: redirect("/docs/pipelines/integrations/other/pagerduty")
get "/docs/integrations/phabricator", to: redirect("/docs/pipelines/source-control/phabricator")
get "/docs/integrations/slack", to: redirect("/docs/pipelines/integrations/other/slack")
get "/docs/integrations/slack-workspace", to: redirect("/docs/pipelines/integrations/other/slack-workspace")
get "/docs/integrations/source-control", to: redirect("/docs/pipelines/source-control")
get "/docs/integrations/sso", to: redirect("/docs/platform/sso")
get "/docs/integrations/sso/google-oauth", to: redirect("/docs/platform/sso/google-workspace")
Expand Down Expand Up @@ -132,7 +141,8 @@
get "/docs/pipelines/public-pipelines", to: redirect("/docs/pipelines/configure/public-pipelines")
get "/docs/pipelines/scheduled-builds", to: redirect("/docs/pipelines/configure/workflows/scheduled-builds")
get "/docs/pipelines/secrets", to: redirect("/docs/pipelines/security/secrets/managing")
get "/docs/pipelines/security-overview", to: redirect("/docs/pipelines/security/overview")
get "/docs/pipelines/security/overview", to: redirect("/docs/pipelines/security")
get "/docs/pipelines/security-overview", to: redirect("/docs/pipelines/security")
get "/docs/pipelines/security/audit-log", to: redirect("/docs/platform/audit-log")
get "/docs/pipelines/security/managing-secrets", to: redirect("/docs/pipelines/security/secrets/managing")
get "/docs/pipelines/skipping", to: redirect("/docs/pipelines/configure/skipping")
Expand All @@ -144,6 +154,11 @@
get "/docs/pipelines/wait-step", to: redirect("/docs/pipelines/configure/step-types/wait-step")
get "/docs/pipelines/waterfall", to: redirect("/docs/pipelines/insights/waterfall")
get "/docs/pipelines/writing-build-scripts", to: redirect("/docs/pipelines/configure/writing-build-scripts")
get "/docs/plugins", to: redirect("/docs/pipelines/integrations/plugins")
get "/docs/plugins/using", to: redirect("/docs/pipelines/integrations/plugins/using")
get "/docs/plugins/directory", to: redirect("/docs/pipelines/integrations/plugins/directory")
get "/docs/plugins/tools", to: redirect("/docs/pipelines/integrations/plugins/tools")
get "/docs/plugins/writing", to: redirect("/docs/pipelines/integrations/plugins/writing")
get "/docs/projects", to: redirect("/docs/pipelines")
get "/docs/quickstart/*page", to: redirect("/docs/tutorials/%{page}")
get "/docs/rest-api", to: redirect("/docs/apis/rest-api")
Expand Down
2 changes: 1 addition & 1 deletion data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
- name: "Security"
children:
- name: "Overview"
path: "pipelines/security/overview"
path: "pipelines/security"
- name: "Secrets"
children:
- name: "Overview"
Expand Down
File renamed without changes.

0 comments on commit c974697

Please sign in to comment.