summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-17 10:21:01 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-17 10:21:01 +0200
commit748631b5a3f350fb7dc51f3ed306d27c1c3bba92 (patch)
treef20b3f761428937bf4281f61d79694188932f791
parentc856a7a5934fba13598be09507c2090888f57a39 (diff)
downloadgitlab-ce-748631b5a3f350fb7dc51f3ed306d27c1c3bba92.tar.gz
Redirect old CI project route to GitLab project
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/controllers/ci/projects_controller.rb5
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