From 2b335dd3c989890ebc7f98ff89e52f646378d210 Mon Sep 17 00:00:00 2001
From: Marcel Amirault <mamirault@gitlab.com>
Date: Mon, 10 Mar 2025 16:45:52 +0900
Subject: [PATCH] Fix links in /app

---
 .gitlab/ci/release-environments.gitlab-ci.yml          | 2 +-
 .gitlab/ci/review.gitlab-ci.yml                        | 2 +-
 app/assets/javascripts/editor/schema/ci.json           | 4 ++--
 app/presenters/dev_ops_report/metric_presenter.rb      | 2 +-
 app/services/ci/archive_trace_service.rb               | 2 +-
 app/views/projects/readme_templates/default.md.tt      | 4 ++--
 config/README.md                                       | 2 +-
 spec/services/projects/readme_renderer_service_spec.rb | 2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/.gitlab/ci/release-environments.gitlab-ci.yml b/.gitlab/ci/release-environments.gitlab-ci.yml
index 98e908a902442..41bad114f9d1a 100644
--- a/.gitlab/ci/release-environments.gitlab-ci.yml
+++ b/.gitlab/ci/release-environments.gitlab-ci.yml
@@ -16,7 +16,7 @@ start-release-environments-security-pipeline:
 
   # These variables are set in the pipeline schedules.
   # They need to be explicitly passed on to the child pipeline.
-  # https://docs.gitlab.com/ee/ci/pipelines/multi_project_pipelines.html#pass-cicd-variables-to-a-downstream-pipeline-by-using-the-variables-keyword
+  # https://docs.gitlab.com/ci/pipelines/downstream_pipelines/#pass-yaml-defined-cicd-variables
   variables:
     # This is needed by `release-environments-build-cng-env` (`.gitlab/ci/release-environments/security.gitlab-ci.yml`).
     PARENT_PIPELINE_ID: $CI_PIPELINE_ID
diff --git a/.gitlab/ci/review.gitlab-ci.yml b/.gitlab/ci/review.gitlab-ci.yml
index 3af90fc10668f..ad5e9f950613e 100644
--- a/.gitlab/ci/review.gitlab-ci.yml
+++ b/.gitlab/ci/review.gitlab-ci.yml
@@ -115,7 +115,7 @@ start-review-app-pipeline:
       - REGISTRY_HOST
   # These variables are set in the pipeline schedules.
   # They need to be explicitly passed on to the child pipeline.
-  # https://docs.gitlab.com/ee/ci/pipelines/multi_project_pipelines.html#pass-cicd-variables-to-a-downstream-pipeline-by-using-the-variables-keyword
+  # https://docs.gitlab.com/ci/pipelines/downstream_pipelines/#pass-yaml-defined-cicd-variables
   variables:
     # This is needed by `review-build-cng-env` (`.gitlab/ci/review-apps/main.gitlab-ci.yml`).
     PARENT_PIPELINE_ID: $CI_PIPELINE_ID
diff --git a/app/assets/javascripts/editor/schema/ci.json b/app/assets/javascripts/editor/schema/ci.json
index 481f5221287e5..7789f8c5fd15e 100644
--- a/app/assets/javascripts/editor/schema/ci.json
+++ b/app/assets/javascripts/editor/schema/ci.json
@@ -2161,7 +2161,7 @@
           "oneOf": [
             {
               "type": "object",
-              "markdownDescription": "Trigger a multi-project pipeline. [Learn More](https://docs.gitlab.com/ee/ci/pipelines/multi_project_pipelines.html#specify-a-downstream-pipeline-branch).",
+              "markdownDescription": "Trigger a multi-project pipeline. [Learn More](https://docs.gitlab.com/ci/pipelines/downstream_pipelines/#multi-project-pipelines).",
               "additionalProperties": false,
               "properties": {
                 "project": {
@@ -2209,7 +2209,7 @@
             },
             {
               "type": "object",
-              "description": "Trigger a child pipeline. [Learn More](https://docs.gitlab.com/ee/ci/pipelines/parent_child_pipelines.html).",
+              "description": "Trigger a child pipeline. [Learn More](https://docs.gitlab.com/ci/pipelines/downstream_pipelines/#parent-child-pipelines).",
               "additionalProperties": false,
               "properties": {
                 "include": {
diff --git a/app/presenters/dev_ops_report/metric_presenter.rb b/app/presenters/dev_ops_report/metric_presenter.rb
index 1a5ce2f5c825b..83aa15fc4e873 100644
--- a/app/presenters/dev_ops_report/metric_presenter.rb
+++ b/app/presenters/dev_ops_report/metric_presenter.rb
@@ -82,7 +82,7 @@ def cards
           description: 'issues created per active user',
           feature: 'service_desk_issues',
           blog: 'http://blogs.forrester.com/kate_leggett/17-01-30-top_trends_for_customer_service_in_2017_operations_become_smarter_and_more_strategic',
-          docs: 'https://docs.gitlab.com/ee/user/project/service_desk.html'
+          docs: 'https://docs.gitlab.com/user/project/service_desk/'
         )
       ]
     end
diff --git a/app/services/ci/archive_trace_service.rb b/app/services/ci/archive_trace_service.rb
index e370f85fa969f..8f3d25cbd00e2 100644
--- a/app/services/ci/archive_trace_service.rb
+++ b/app/services/ci/archive_trace_service.rb
@@ -58,7 +58,7 @@ def execute(job, worker_name:)
 
       # Tracks this error with application logs, Sentry, and Prometheus.
       # If `archive!` keeps failing for over a week, that could incur data loss.
-      # (See more https://docs.gitlab.com/ee/administration/job_logs.html#new-incremental-logging-architecture)
+      # (See more https://docs.gitlab.com/administration/cicd/job_logs/#incremental-logging-architecture)
       # In order to avoid interrupting the system, we do not raise an exception here.
       archive_error(e, job, worker_name)
     end
diff --git a/app/views/projects/readme_templates/default.md.tt b/app/views/projects/readme_templates/default.md.tt
index cee7a69c9f80e..7a21473bbeaea 100644
--- a/app/views/projects/readme_templates/default.md.tt
+++ b/app/views/projects/readme_templates/default.md.tt
@@ -12,7 +12,7 @@ Already a pro? Just edit this README.md and make it your own. Want to make it ea
 ## Add your files
 
 - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
-- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
+- [ ] [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
 
 ```
 cd existing_repo
@@ -31,7 +31,7 @@ git push -uf origin <%= params[:default_branch] %>
 - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
 - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
 - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
-- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
+- [ ] [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/)
 
 ## Test and Deploy
 
diff --git a/config/README.md b/config/README.md
index 9a8672a7adac8..680b5234f314c 100644
--- a/config/README.md
+++ b/config/README.md
@@ -72,7 +72,7 @@ An example configuration file for Redis is in this directory under the name
 | `cache`             |                   | Volatile non-persistent data                                                                                 |
 | `queues`            |                   | Background job processing queues                                                                             |
 | `shared_state`      |                   | Persistent application state                                                                                 |
-| `trace_chunks`      | `shared_state`    | [CI trace chunks](https://docs.gitlab.com/ee/administration/job_logs.html#incremental-logging-architecture)  |
+| `trace_chunks`      | `shared_state`    | [CI trace chunks](https://docs.gitlab.com/administration/cicd/job_logs/#incremental-logging-architecture)    |
 | `rate_limiting`     | `cache`           | [Rate limiting](https://docs.gitlab.com/ee/administration/settings/user_and_ip_rate_limits.html) state      |
 | `sessions`          | `shared_state`    | [Sessions](https://docs.gitlab.com/ee/development/session.html#redis)                                        |
 | `repository_cache`  | `cache`           | Repository related information                                                                               |
diff --git a/spec/services/projects/readme_renderer_service_spec.rb b/spec/services/projects/readme_renderer_service_spec.rb
index cced9e5222785..b9788832db644 100644
--- a/spec/services/projects/readme_renderer_service_spec.rb
+++ b/spec/services/projects/readme_renderer_service_spec.rb
@@ -26,7 +26,7 @@
       ## Add your files
 
       - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
-      - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
+      - [ ] [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
 
       ```
       cd existing_repo
-- 
GitLab