feat: add env variable for website base url

This commit is contained in:
Björn Fromme
2026-01-05 17:20:18 +01:00
parent 7127b4d050
commit ef263e064a
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -51,6 +51,7 @@ APP_BPN_TOTAL_TIMEOUT=45
APP_TRAVEL_INFO_BASE_URL="https://www.ep-reisen.de/reiseinformationen/" APP_TRAVEL_INFO_BASE_URL="https://www.ep-reisen.de/reiseinformationen/"
APP_CMS_API_BASE_URL="https://www.ep-reisen.de/" APP_CMS_API_BASE_URL="https://www.ep-reisen.de/"
APP_WEBSITE_BASE_URL="https://www.ep-reisen.de/"
# Travel Data Service Configuration # Travel Data Service Configuration
APP_TRAVEL_PREFER_REMOTE=false APP_TRAVEL_PREFER_REMOTE=false
+1
View File
@@ -3,6 +3,7 @@ twig:
form_themes: ['forms.html.twig'] form_themes: ['forms.html.twig']
globals: globals:
htmx_change_trigger: 'change delay:100ms' htmx_change_trigger: 'change delay:100ms'
website_base_url: '%env(APP_WEBSITE_BASE_URL)%'
when@test: when@test:
twig: twig:
+1 -1
View File
@@ -1,5 +1,5 @@
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<a href="https://www.ep-reisen.de" title="zur E&amp;P Website"> <a href="{{ website_base_url }}" title="zur E&amp;P Website">
{% if booking_theme() == 'sbw' %} {% if booking_theme() == 'sbw' %}
<img src="{{ asset('build/images/logo_sbw.svg') }}" alt="" class="h-10 my-2 w-auto"> <img src="{{ asset('build/images/logo_sbw.svg') }}" alt="" class="h-10 my-2 w-auto">
{% elseif booking_theme() == 'ser' %} {% elseif booking_theme() == 'ser' %}