diff --git a/.env b/.env index 683675a4..1c43487f 100644 --- a/.env +++ b/.env @@ -101,6 +101,11 @@ APP_TRAVEL_SNAPSHOT_RETENTION_BUFFER_DAYS=14 # because the cached travels and TravelSnapshot rows carry the parsed price. APP_BPN_LEVEL_BOARDING_POINT_PRICES=true +# Off turns every navigation into a full page load, which the web debug toolbar needs: its loader +# script never runs on a boosted body swap. Explicit hx-get/hx-post requests are unaffected. +# Only for local debugging; prod and the boosted code paths (HxRedirectResponse, error modal) need it on. +APP_HTMX_BOOST=true + # Emails APP_DEFAULT_EMAIL_FROM=info@ep-reisen.de APP_DEFAULT_EMAIL_TO=info@ep-reisen.de diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index 100ceb17..7ea0024e 100644 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -5,6 +5,7 @@ twig: '%kernel.project_dir%/assets/images': images globals: htmx_change_trigger: 'change delay:100ms' + htmx_boost: '%env(bool:APP_HTMX_BOOST)%' website_base_url: '%env(APP_WEBSITE_BASE_URL)%' customer_service_email: '%env(APP_CUSTOMER_SERVICE_EMAIL)%' legal_notice_url: '%env(APP_LEGAL_NOTICE_URL)%' diff --git a/templates/base.html.twig b/templates/base.html.twig index 9a7463cc..73596582 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -27,7 +27,7 @@ {{ encore_entry_script_tags('app') }} {% endblock %} - + {% block body %}{% endblock %} {% block data_layer %}{% endblock %}