diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index db16faf..5da69b3 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -151,7 +151,7 @@
set_gettext_locale #Method defined at controllers/application_controller.rb
set_flash_message :notice, _('Details successfully updated.')
sign_in current_user, bypass: true # Sign in the user bypassing validation in case his password changed
- redirect_to edit_user_registration_path(@tab), notice: _('Details successfully updated.')
+ redirect_to edit_user_registration_path(tab: @tab), notice: _('Details successfully updated.')
else
flash[:notice] = message.blank? ? failed_update_error(current_user, _('profile')) : message
@@ -175,7 +175,7 @@
set_gettext_locale #Method defined at controllers/application_controller.rb
set_flash_message :notice, _('Details successfully updated.')
sign_in current_user, bypass: true # Sign in the user bypassing validation in case his password changed
- redirect_to edit_user_registration_path(@tab), notice: _('Details successfully updated.')
+ redirect_to edit_user_registration_path(tab: @tab), notice: _('Details successfully updated.')
else
flash[:notice] = message.blank? ? failed_update_error(current_user, _('profile')) : message
diff --git a/app/views/devise/registrations/_password_details.html.erb b/app/views/devise/registrations/_password_details.html.erb
index 0b0e5eb..9a93588 100644
--- a/app/views/devise/registrations/_password_details.html.erb
+++ b/app/views/devise/registrations/_password_details.html.erb
@@ -1,4 +1,4 @@
-<%= form_for(resource, as: resource_name, url: registration_path(resource_name, tab: 'password'), html: {method: :put, class: "roadmap-form white_background"}) do |f| %>
+<%= form_for(resource, as: resource_name, url: registration_path(resource_name, tab: 'password-details-tab'), html: {method: :put, class: "roadmap-form white_background"}) do |f| %>