summaryrefslogtreecommitdiff
path: root/app/controllers/ci
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-24 14:16:12 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-29 08:04:17 +0200
commitb7685b57d3fc9a2e27096c5984d92fd104ff71b7 (patch)
tree210f45973253ec0f451f8ad34ca07f7c55ba5e44 /app/controllers/ci
parent6f894bec097a4cfa378cee908d81f3cba67a09e5 (diff)
downloadgitlab-ce-b7685b57d3fc9a2e27096c5984d92fd104ff71b7.tar.gz
Redirect to root path when visiting `/ci`fix/nomethod-error-on-ci
Diffstat (limited to 'app/controllers/ci')
-rw-r--r--app/controllers/ci/projects_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/ci/projects_controller.rb b/app/controllers/ci/projects_controller.rb
index c0e7f434ff5..8bf71a1adbb 100644
--- a/app/controllers/ci/projects_controller.rb
+++ b/app/controllers/ci/projects_controller.rb
@@ -6,6 +6,10 @@ module Ci
skip_before_action :authenticate_user!, only: [:badge]
protect_from_forgery
+ def index
+ redirect_to root_path
+ end
+
def show
# Temporary compatibility with CI badges pointing to CI project page
redirect_to namespace_project_path(project.namespace, project)