use Current.application_base_url in app

This commit is contained in:
simon lehericey 2024-03-19 22:31:51 +01:00
parent 4c3b0229eb
commit 1dfd3bf573
5 changed files with 5 additions and 5 deletions

View file

@ -23,7 +23,7 @@ class RootController < ApplicationController
end
def patron
description = "Allez voir le super site : #{APPLICATION_BASE_URL}"
description = "Allez voir le super site : #{Current.application_base_url}"
all_champs = TypeDeChamp.type_champs
.map.with_index { |(name, _), i| TypeDeChamp.new(type_champ: name, private: false, libelle: name.humanize, description:, mandatory: true, stable_id: i) }

View file

@ -10,7 +10,7 @@
%h1.fr-mb-4w
= t('views.accessibility_statement.title')
%p.fr-mb-2w= t('views.accessibility_statement.line_one')
%p.fr-mb-2w= t('views.accessibility_statement.line_two', app_name: Current.application_name, host: URI(APPLICATION_BASE_URL).host)
%p.fr-mb-2w= t('views.accessibility_statement.line_two', app_name: Current.application_name, host: URI(Current.application_base_url).host)
%div
%h2

View file

@ -39,7 +39,7 @@
- c.with_body do
%p
-# i18n-tasks-use t("support.index.#{question_type}.answer_html")
= t('answer_html', scope: [:support, :index, question_type], base_url: APPLICATION_BASE_URL, "link_#{question_type}": link)
= t('answer_html', scope: [:support, :index, question_type], base_url: Current.application_base_url, "link_#{question_type}": link)
.fr-input-group
= label_tag :dossier_id, t('file_number', scope: [:utils]), class: 'fr-label'

View file

@ -28,4 +28,4 @@
.blank-tab
%h2.empty-text= t('views.users.dossiers.dossiers_list.no_result_title')
%p.empty-text-details
= t('views.users.dossiers.dossiers_list.no_result_text_html', app_base: APPLICATION_BASE_URL)
= t('views.users.dossiers.dossiers_list.no_result_text_html', app_base: Current.application_base_url)

View file

@ -125,6 +125,6 @@
.blank-tab
%h2.empty-text= t('views.users.dossiers.dossiers_list.no_result_title')
%p.empty-text-details
= t('views.users.dossiers.dossiers_list.no_result_text_html', app_base: APPLICATION_BASE_URL)
= t('views.users.dossiers.dossiers_list.no_result_text_html', app_base: Current.application_base_url)
%p
= link_to t("root.landing.how_to_find_procedure"), t("links.common.faq.comment_trouver_ma_demarche_url"), class: "fr-btn fr-btn--lg fr-mr-1w fr-mb-2w", **external_link_attributes