summaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index a4c804fd8..2b5e2f2c2 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -334,6 +334,16 @@ class ApplicationController < ActionController::Base
url
end
+ # Returns the path to project issues or to the cross-project
+ # issue list if project is nil
+ def _issues_path(project, *args)
+ if project
+ project_issues_path(project, *args)
+ else
+ issues_path(*args)
+ end
+ end
+
def redirect_back_or_default(default)
back_url = params[:back_url].to_s
if back_url.present?