Fix relative links when Drupal project resides in a sub directory

Created on 18 September 2024, 4 months ago
Updated 19 September 2024, 4 months ago

Note, this is a Gin Toolbar issue but the affected template resides in the Gin theme.

Problem/Motivation

Given your Drupal projects resides in a subfolder e.g. https://example.com/drupal/, the URL in the Gin toolbar is wrongly linking to <a href="/"> sending you to https://example.com/ when clicking it instead of https://example.com/drupal/.

Steps to reproduce

Proposed resolution

Replace <a href="/"> with <a href="{{ path('<front>') }}"> in navigation--gin.html.twig.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

leymannx Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024