diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-17 09:12:29 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-17 09:12:29 +0000 |
commit | 5e74c5c4db86c00379f809e4b47b1a2ae4abd03e (patch) | |
tree | 6889dfafdd876dfabce72ecb074e717c20077243 | |
parent | fbd9d3ec0d634c3e85d257d9b7e7a9d368682852 (diff) | |
parent | 748631b5a3f350fb7dc51f3ed306d27c1c3bba92 (diff) | |
download | gitlab-ce-5e74c5c4db86c00379f809e4b47b1a2ae4abd03e.tar.gz |
Merge branch 'redirect-ci-page' into 'master'
Redirect old CI project route to GitLab project
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
See merge request !1629
-rw-r--r-- | app/controllers/ci/projects_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/ci/projects_controller.rb b/app/controllers/ci/projects_controller.rb index 7777aa18031..96649ab815a 100644 --- a/app/controllers/ci/projects_controller.rb +++ b/app/controllers/ci/projects_controller.rb @@ -7,6 +7,11 @@ module Ci before_action :no_cache, only: [:badge] protect_from_forgery + def show + # Temporary compatibility with CI badges pointing to CI project page + redirect_to namespace_project_path(project.gl_project.namespace, project.gl_project) + end + # Project status badge # Image with build status for sha or ref def badge |