Fix relative links when Drupal project resides in a sub directory
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3475361. --> Reported by: [norman.lol](https://www.drupal.org/user/2482808) Related to !501 >>> <p>Note, this is a Gin Toolbar issue but the affected template resides in the Gin theme.</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Given your Drupal projects resides in a subfolder e.g. <code>https://example.com/drupal/</code>, the URL in the Gin toolbar is wrongly linking to <code>&lt;a href="/"&gt;</code> sending you to <code>https://example.com/</code> when clicking it instead of <code>https://example.com/drupal/</code>.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Replace <code>&lt;a href="/"&gt;</code> with <code>&lt;a href="{{ path('&lt;front&gt;') }}"&gt;</code> in <code>navigation--gin.html.twig</code>.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue