routes: replace the email param in the Avis URLs by a query param

This commit is contained in:
Pierre de La Morinerie 2021-06-15 16:44:33 +00:00
parent ab442cd8d1
commit b5bde6608c
7 changed files with 14 additions and 9 deletions

View file

@ -91,7 +91,7 @@ module Experts
redirect_to url_for(expert_all_avis_path)
else
flash[:alert] = user.errors.full_messages
redirect_to url_for(sign_up_expert_avis_path(procedure_id, avis_id, email))
redirect_to sign_up_expert_avis_path(procedure_id, avis_id, email: email)
end
end