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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix[Op#57599]: Disable turbo in project links by default
Kabiru Mwenja84f4b108777a
diff --git a/lib/open_project/object_linking.rb b/lib/open_project/object_linking.rbindex d30875dca95..02388863410 100644--- a/lib/open_project/object_linking.rb+++ b/lib/open_project/object_linking.rb@@ -111,14 +111,20 @@ module OpenProjectend# Generates a link to a project if active+ #+ # *NB* By default, the link is NOT turbo-enabled.+ # The default behaviour is to navigate OUT of the enclosing turbo frame.+ ## Examples:## link_to_project(project) # => link to the specified project overview# link_to_project(project, {only_path: false}, class: "project") # => 3rd arg adds html options# link_to_project(project, {}, class: "project") # => html options with default url (project overview)#- def link_to_project(project, options = {}, html_options = nil, show_icon = false)+ def link_to_project(project, options = {}, html_options = {}, show_icon = false)project_name = project_link_name(project, show_icon)+ html_options[:data] ||= {}+ html_options[:data][:turbo] ||= falseif project.active?link_to(project_name, project_path_or_url(project, options), html_options)