diff --git a/app/views/administration_mailer/invite_admin.html.haml b/app/views/administration_mailer/invite_admin.html.haml index dfbf0cb3c..49be915cd 100644 --- a/app/views/administration_mailer/invite_admin.html.haml +++ b/app/views/administration_mailer/invite_admin.html.haml @@ -16,7 +16,7 @@ Vous pouvez me joindre au numéro suivant : 01 76 42 02 87. %br %br Je vous invite également à consulter notre site de documentation qui regroupe l'ensemble des informations relatives à demarches-simplifiees.fr ainsi que des tutoriels d’utilisation : -= link_to('https://demarches-simplifiees.gitbook.io/demarches-simplifiees/', 'https://demarches-simplifiees.gitbook.io/demarches-simplifiees/') += link_to(DOC_URL, DOC_URL) %br %br = render partial: "layouts/mailers/bizdev_signature" diff --git a/app/views/gestionnaire_mailer/invite_gestionnaire.html.haml b/app/views/gestionnaire_mailer/invite_gestionnaire.html.haml index 3b5fa28d3..56d39d440 100644 --- a/app/views/gestionnaire_mailer/invite_gestionnaire.html.haml +++ b/app/views/gestionnaire_mailer/invite_gestionnaire.html.haml @@ -10,7 +10,7 @@ Votre compte a été créé pour l'adresse email #{@gestionnaire.email}. Pour l %br %br Par ailleurs, notre site de documentation qui regroupe l'ensemble des informations relatives à demarches-simplifiees.fr ainsi que des tutoriels d’utilisation est à votre disposition :  -= link_to('https://demarches-simplifiees.gitbook.io/demarches-simplifiees/', 'https://demarches-simplifiees.gitbook.io/demarches-simplifiees/') += link_to(DOC_URL, DOC_URL) %br %br Bonne journée, diff --git a/app/views/layouts/_new_footer.html.haml b/app/views/layouts/_new_footer.html.haml index 264c5c331..462609955 100644 --- a/app/views/layouts/_new_footer.html.haml +++ b/app/views/layouts/_new_footer.html.haml @@ -24,7 +24,7 @@ %li.footer-link = link_to "CGU", CGU_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" %li.footer-link - = link_to "Mentions légales", "https://demarches-simplifiees.gitbook.io/demarches-simplifiees/cgu#4.-mentions-legales", :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" + = link_to "Mentions légales", MENTIONS_LEGALES_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" %li.footer-column %ul.footer-links @@ -33,10 +33,10 @@ "mailto:#{t('dynamics.contact_email')}", :class => "footer-link" %li.footer-link - = link_to "Documentation", "https://demarches-simplifiees.gitbook.io/demarches-simplifiees/", :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" + = link_to "Documentation", DOC_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" %li.footer-link = link_to "Documentation de l'API", "/docs", :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" %li.footer-link - = link_to "FAQ", "http://demarches-simplifiees.helpscoutdocs.com/", :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" + = link_to "FAQ", FAQ_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" %li.footer-link = link_to "Accessibilité", accessibilite_index_path, :class => "footer-link" diff --git a/app/views/root/landing.html.haml b/app/views/root/landing.html.haml index f208b0a79..f518b3086 100644 --- a/app/views/root/landing.html.haml +++ b/app/views/root/landing.html.haml @@ -51,7 +51,7 @@ class: "role-panel-button-primary" = link_to "Voir les démarches disponibles", - "https://demarches-simplifiees.gitbook.io/demarches-simplifiees/listes-des-demarches", + LISTE_DES_DEMARCHES_URL, target: "_blank", rel: "noopener noreferrer", class: "role-panel-button-secondary" @@ -74,7 +74,7 @@ onclick: "javascript: ga('send', 'pageview', '/demander-une-demo')" = link_to "Voir la documentation", - "https://demarches-simplifiees.gitbook.io/demarches-simplifiees/", + DOC_URL, target: "_blank", rel: "noopener noreferrer", class: "role-panel-button-secondary" diff --git a/config/initializers/constants.rb b/config/initializers/constants.rb index 95da3f7ed..a1408744f 100644 --- a/config/initializers/constants.rb +++ b/config/initializers/constants.rb @@ -1 +1,6 @@ -CGU_URL = "https://demarches-simplifiees.gitbook.io/demarches-simplifiees/cgu" +DOC_URL = "https://doc.demarches-simplifiees.fr" +LISTE_DES_DEMARCHES_URL = [DOC_URL, "listes-des-demarches"].join("/") +CGU_URL = [DOC_URL, "cgu"].join("/") +MENTIONS_LEGALES_URL = [CGU_URL, "4-mentions-legales"].join("#") + +FAQ_URL = "https://faq.demarches-simplifiees.fr"