Turn internal protocols to actual links ()

Created on 18 April 2024, 8 months ago
Updated 2 August 2024, 4 months ago

When using drupal protocolls within the privacy-url and info-url in the app-form, there will be a validation if they are parseable by Drupal\Core\Url . But when outputting the links (process app description) they will be outputted without processing the protocoll, e.g in the frontend there will be internal:/node/xyz which cannot be handled by the browser.

This didnt pop up yet because we never actually tested the internal:/ protocoll conversion ..

Solution:
Before outputting initiate a Drupal\Core\Url object of the value and use ->toString to get the processed url

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇩🇪Germany sascha_meissner Planet earth

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