Link to documentation not relative to base path

Created on 2 February 2023, almost 2 years ago
Updated 24 April 2023, over 1 year ago

Problem/Motivation

If you edit your cookie settings, there is a link called "Cookie documentation". The href of this link is not relative to the base path of your installation. If the base path contains a folder below the domain, the link is broken.

Steps to reproduce

1. Create a Drupal installation with a base path, which contains a folder, e.g. domain.org/site/...
2. Open Cookie settings with #editCookieSettings or from Cookies ui banner
3. Click on link "Cookie documentation"
4. 404 Not Found or similar

Proposed resolution

See the attached patch file, which improves the CookiesConfigService::getTranslation function.

🐛 Bug report
Status

Needs work

Version

1.2

Component

Code

Created by

🇩🇪Germany JoCowood Kamp-Lintfort

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

Comments & Activities

Production build 0.71.5 2024