Outbound processor is not triggered for link prop

Created on 8 July 2025, about 7 hours ago

Overview

For some reason \Drupal\path_alias\PathProcessor\AliasPathProcessor::processOutbound is not triggered for XB link fields. This should convert for example /page/1 to use its alias. Should we run

Proposed resolution

We should potentially run \Drupal\Core\PathProcessor\PathProcessorManager::processOutbound for the value of the link field before passing it to a component.

This does raise a question though; what if I want to generate a link inside a code component. How would I do that? This is critical especially when building multilingual sites because of \Drupal\language\HttpKernel\PathProcessorLanguage::processOutbound is responsible for adding the correct langcode to the URL.

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

… to be triaged

Created by

🇫🇮Finland lauriii Finland

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

Comments & Activities

Production build 0.71.5 2024