]> Raphaël G. Git Repositories - blogbundle/commitdiff
Generate root path
authorRaphaël Gertz <git@rapsys.eu>
Tue, 14 Oct 2025 11:23:17 +0000 (13:23 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 14 Oct 2025 11:23:17 +0000 (13:23 +0200)
templates/_base.html.twig

index 0b103c0c9ee659163322241c5f3e247709f5db4c..a175f5da3c7c50c731ec94a70a9320c954c3ca53 100644 (file)
@@ -69,7 +69,7 @@
                                <header id="header">
                                        {% if logo is defined and logo %}
                                                {% block header_title %}
-                                                       <a id="logo" href="{{ root }}" title="{{ title.site }}">
+                                                       <a id="logo" href="{{ path(root) }}" title="{{ title.site }}">
                                                                <img src="{{ asset(logo.svg) }}?{{ 'now'|date('U') }}" srcset="{{ asset(logo.png) }}?{{ 'now'|date('U') }} 200w, {{ asset(logo.svg) }}?{{ 'now'|date('U') }} 400w" sizes="(min-width:400px) 400px, 200px" alt="{{ title.site }}" width="100" height="45" />
                                                                <strong>{{ title.site }}</strong>
                                                        </a>