Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Allow redirect for keyboard shortcuts and help

Oliver Günther7d543501783b
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb
index 3eb2c7b2885..6e16d01fcbd 100644
--- a/app/controllers/help_controller.rb
+++ b/app/controllers/help_controller.rb
@@ -30,13 +30,13 @@ class HelpController < ApplicationController
no_authorization_required! :keyboard_shortcuts, :text_formatting
def keyboard_shortcuts
- redirect_to OpenProject::Static::Links[:shortcuts][:href]
+ redirect_to OpenProject::Static::Links[:shortcuts][:href], allow_other_host: true
end
def text_formatting
default_link = OpenProject::Static::Links[:text_formatting][:href]
help_link = OpenProject::Configuration.force_formatting_help_link.presence || default_link
- redirect_to help_link
+ redirect_to help_link, allow_other_host: true
end
end