From a1bab246818746e27a0c57cc31560c963b7ec978 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Tue, 9 Oct 2018 15:56:10 +0200 Subject: [PATCH] Change the link to the API documentation --- app/views/root/_footer.html.haml | 2 +- config/initializers/urls.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/root/_footer.html.haml b/app/views/root/_footer.html.haml index ef2b14c33..174db199b 100644 --- a/app/views/root/_footer.html.haml +++ b/app/views/root/_footer.html.haml @@ -34,7 +34,7 @@ %li.footer-link = 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" + = link_to "Documentation de l'API", API_DOC_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" %li.footer-link = link_to "FAQ", FAQ_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" %li.footer-link diff --git a/config/initializers/urls.rb b/config/initializers/urls.rb index 156397c6b..e2b5e1e80 100644 --- a/config/initializers/urls.rb +++ b/config/initializers/urls.rb @@ -13,4 +13,5 @@ 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("#") +API_DOC_URL = [DOC_URL, "pour-aller-plus-loin", "api"].join("/") FAQ_URL = "https://faq.demarches-simplifiees.fr"