Export link formater breaks url when not exporting link text

Created on 5 September 2024, 8 months ago

If exporting the link text, the url works correctly. If not exporting link text, the url is exported with ['#markup' => $url->toString()], resulting in & in the url params been escaped to &. It needs to be changed to

[
          '#type' => 'data',
          '#data' => SerializedData::create($url->toString()),
];

that is similar to what is done when text is exported and will work correctly.

πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡¬πŸ‡·Greece s.messaris

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

Comments & Activities

Production build 0.71.5 2024