From b76d17d35c8b1c5505d5be101b3bb8750fd6a46a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 5 Jan 2026 17:20:18 +0100 Subject: [PATCH] feat: add env variable for website base url --- .env | 1 + config/packages/twig.yaml | 1 + templates/_partials/_header.html.twig | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 6be2d99..6934981 100644 --- a/.env +++ b/.env @@ -51,6 +51,7 @@ APP_BPN_TOTAL_TIMEOUT=45 APP_TRAVEL_INFO_BASE_URL="https://www.ep-reisen.de/reiseinformationen/" APP_CMS_API_BASE_URL="https://www.ep-reisen.de/" +APP_WEBSITE_BASE_URL="https://www.ep-reisen.de/" # Travel Data Service Configuration APP_TRAVEL_PREFER_REMOTE=false diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index 029d094..d6dbd77 100644 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -3,6 +3,7 @@ twig: form_themes: ['forms.html.twig'] globals: htmx_change_trigger: 'change delay:100ms' + website_base_url: '%env(APP_WEBSITE_BASE_URL)%' when@test: twig: diff --git a/templates/_partials/_header.html.twig b/templates/_partials/_header.html.twig index 97e8254..5e354fe 100644 --- a/templates/_partials/_header.html.twig +++ b/templates/_partials/_header.html.twig @@ -1,5 +1,5 @@
- + {% if booking_theme() == 'sbw' %} {% elseif booking_theme() == 'ser' %}