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

Revert "fix[Op#57599]: Disable turbo in project links by default"

Kabiru Mwenjaeab979f1b816
diff --git a/lib/open_project/object_linking.rb b/lib/open_project/object_linking.rb
index 02388863410..d30875dca95 100644
--- a/lib/open_project/object_linking.rb
+++ b/lib/open_project/object_linking.rb
@@ -111,20 +111,14 @@ module OpenProject
end
# 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 = {}, show_icon = false)
+ def link_to_project(project, options = {}, html_options = nil, show_icon = false)
project_name = project_link_name(project, show_icon)
- html_options[:data] ||= {}
- html_options[:data][:turbo] ||= false
if project.active?
link_to(project_name, project_path_or_url(project, options), html_options)