Export link formater breaks url when not exporting link text

Created on 5 September 2024, 7 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

Needs work

Version

3.1

Component

Code

Created by

🇬🇷Greece s.messaris

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024