diff --git a/app/models/concerns/tags_substitution_concern.rb b/app/models/concerns/tags_substitution_concern.rb index b4e194186..b861fd026 100644 --- a/app/models/concerns/tags_substitution_concern.rb +++ b/app/models/concerns/tags_substitution_concern.rb @@ -47,7 +47,7 @@ module TagsSubstitutionConcern { libelle: 'lien dossier', description: '', - lambda: -> (d) { external_link(users_dossier_recapitulatif_url(d)) }, + lambda: -> (d) { external_link(dossier_url(d)) }, available_for_states: Dossier::SOUMIS }, { diff --git a/spec/models/concern/mail_template_concern_spec.rb b/spec/models/concern/mail_template_concern_spec.rb index cae0c8c87..04e4e428c 100644 --- a/spec/models/concern/mail_template_concern_spec.rb +++ b/spec/models/concern/mail_template_concern_spec.rb @@ -26,7 +26,7 @@ describe MailTemplateConcern do it do expected = "[demarches-simplifiees.fr] #{dossier.id} #{dossier.procedure.libelle} " + - "http://localhost:3000/users/dossiers/#{dossier.id}/recapitulatif" + "http://localhost:3000/dossiers/#{dossier.id}" is_expected.to eq(expected) end