diff --git a/app/views/shared/dossiers/_edit.html.haml b/app/views/shared/dossiers/_edit.html.haml
index 03282ecfc..f298f5d89 100644
--- a/app/views/shared/dossiers/_edit.html.haml
+++ b/app/views/shared/dossiers/_edit.html.haml
@@ -6,7 +6,7 @@
- elsif dossier.brouillon?
- form_options = { url: brouillon_dossier_url(dossier), method: :patch, html: { class: 'form', multipart: true } }
- else
- - form_options = { url: dossier_url(dossier), method: :patch, html: { class: 'form', multipart: true } }
+ - form_options = { url: modifier_dossier_url(dossier), method: :patch, html: { class: 'form', multipart: true } }
= form_for dossier, form_options do |f|
diff --git a/config/routes.rb b/config/routes.rb
index 9d49f7ed8..cb8855c75 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -271,14 +271,14 @@ Rails.application.routes.draw do
#
scope module: 'new_user' do
- resources :dossiers, only: [:index, :show, :update] do
+ resources :dossiers, only: [:index, :show] do
member do
get 'identite'
patch 'update_identite'
get 'brouillon'
patch 'brouillon', to: 'dossiers#update_brouillon'
get 'modifier', to: 'dossiers#modifier'
- patch ':id', to: 'dossiers#update'
+ patch 'modifier', to: 'dossiers#update'
get 'merci'
get 'demande'
get 'messagerie'