Use relative path in templates instead of full pathes

This fixes problems with HTTP/HTTPS mixing
This commit is contained in:
Jan Böhmer 2022-08-04 21:00:42 +02:00
parent 4c4b610daa
commit 92e477775a
9 changed files with 14 additions and 14 deletions

View file

@ -61,7 +61,7 @@
{% endif %}
{% endblock %}
</head>
<body data-base-url="{{ url('homepage', {'_locale': app.request.locale}) }}" data-locale="{{ app.request.locale|default("en")|slice(0,2) }}">
<body data-base-url="{{ path('homepage', {'_locale': app.request.locale}) }}" data-locale="{{ app.request.locale|default("en")|slice(0,2) }}">
{% block body %}
<header>
<turbo-frame id="navbar-frame" target="content" data-turbo-action="advance" data-turbo-permanent>