diff --git a/backend/app/views/admin_mailer/investor_created.html.erb b/backend/app/views/admin_mailer/investor_created.html.erb index 4370345a3..74b0229c2 100644 --- a/backend/app/views/admin_mailer/investor_created.html.erb +++ b/backend/app/views/admin_mailer/investor_created.html.erb @@ -1,3 +1,3 @@
<%= t "admin_mailer.investor_created.content_html", new_investor_url: link_to('New Investor', backoffice_investor_url(@investor)) %>
+<%= t "admin_mailer.investor_created.content_html", new_investor_url: link_to('New Investor', edit_backoffice_investor_url(@investor)) %>
<%= t "admin_mailer.farewell_html" %>
\ No newline at end of file diff --git a/backend/app/views/admin_mailer/project_developer_created.html.erb b/backend/app/views/admin_mailer/project_developer_created.html.erb index a45ce9a90..175bba4b7 100644 --- a/backend/app/views/admin_mailer/project_developer_created.html.erb +++ b/backend/app/views/admin_mailer/project_developer_created.html.erb @@ -1,3 +1,3 @@<%= t "admin_mailer.project_developer_created.content_html", new_pd_url: link_to('New Project Developer', backoffice_project_developer_url(@project_developer)) %>
+<%= t "admin_mailer.project_developer_created.content_html", new_pd_url: link_to('New Project Developer', edit_backoffice_project_developer_url(@project_developer)) %>
<%= t "admin_mailer.farewell_html" %>
\ No newline at end of file diff --git a/backend/spec/mailers/admin_mailer_spec.rb b/backend/spec/mailers/admin_mailer_spec.rb index 6f687187c..6aa39487d 100644 --- a/backend/spec/mailers/admin_mailer_spec.rb +++ b/backend/spec/mailers/admin_mailer_spec.rb @@ -33,7 +33,7 @@ it "renders the body" do expect(mail.body.encoded).to match(I18n.t("admin_mailer.greetings", full_name: admin.full_name)) - expect(mail.body.encoded).to match(I18n.t("admin_mailer.project_developer_created.content_html", new_pd_url: link_to("New Project Developer", backoffice_project_developer_url(project_developer)))) + expect(mail.body.encoded).to match(I18n.t("admin_mailer.project_developer_created.content_html", new_pd_url: link_to("New Project Developer", edit_backoffice_project_developer_url(project_developer)))) expect(mail.body.encoded).to match(I18n.t("admin_mailer.farewell_html")) end end @@ -48,7 +48,7 @@ it "renders the body" do expect(mail.body.encoded).to match(I18n.t("admin_mailer.greetings", full_name: admin.full_name)) - expect(mail.body.encoded).to match(I18n.t("admin_mailer.investor_created.content_html", new_investor_url: link_to("New Investor", backoffice_investor_url(investor)))) + expect(mail.body.encoded).to match(I18n.t("admin_mailer.investor_created.content_html", new_investor_url: link_to("New Investor", edit_backoffice_investor_url(investor)))) expect(mail.body.encoded).to match(I18n.t("admin_mailer.farewell_html")) end end