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

Scroll to form even with redirect

Oliver Günther57a3a75e82d2
diff --git a/modules/auth_saml/app/controllers/saml/providers_controller.rb b/modules/auth_saml/app/controllers/saml/providers_controller.rb
index de8af751e85..efb09d7aa47 100644
--- a/modules/auth_saml/app/controllers/saml/providers_controller.rb
+++ b/modules/auth_saml/app/controllers/saml/providers_controller.rb
@@ -53,7 +53,10 @@ module Saml
end
if @edit_mode
- redirect_to edit_saml_provider_path(@provider, edit_mode: @edit_mode, edit_state: :configuration)
+ redirect_to edit_saml_provider_path(@provider,
+ anchor: "saml-providers-edit-form",
+ edit_mode: @edit_mode,
+ edit_state: :configuration)
else
redirect_to saml_provider_path(@provider)
end
@@ -119,7 +122,10 @@ module Saml
end
format.html do
if @edit_mode && @next_edit_state
- redirect_to edit_saml_provider_path(@provider, edit_mode: true, edit_state: @next_edit_state)
+ redirect_to edit_saml_provider_path(@provider,
+ anchor: "saml-providers-edit-form",
+ edit_mode: true,
+ edit_state: @next_edit_state)
else
redirect_to saml_provider_path(@provider)
end