diff options
| author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-24 14:16:12 +0100 |
|---|---|---|
| committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-29 08:04:17 +0200 |
| commit | b7685b57d3fc9a2e27096c5984d92fd104ff71b7 (patch) | |
| tree | 210f45973253ec0f451f8ad34ca07f7c55ba5e44 /app/controllers/ci | |
| parent | 6f894bec097a4cfa378cee908d81f3cba67a09e5 (diff) | |
| download | gitlab-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.rb | 4 |
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) |
