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

Add comment about why turbo=false in the form

Klaus Zandersfec0f1630d98
diff --git a/app/components/projects/index_page_header_component.html.erb b/app/components/projects/index_page_header_component.html.erb
index bcc4b4e27fe..ecdedbba829 100644
--- a/app/components/projects/index_page_header_component.html.erb
+++ b/app/components/projects/index_page_header_component.html.erb
@@ -149,6 +149,9 @@
primer_form_with(model: query,
url: @query.new_record? ? project_queries_path(projects_query_params) : project_query_path(@query, projects_query_params),
scope: 'query',
+ # currently we cannot change the URL when switching data with Turbo Streams. When we switch to
+ # Turbo drive, we can get rid of this and instead use turbo-action=replace, see
+ # https://turbo.hotwired.dev/handbook/drive#application-visits
data: { turbo: false },
id: 'project-save-form') do |f|
render(