- Issue created by @apmsooner
- Merge request !21Issue #3380513: Support internal links in the Url widget → (Closed) created by apmsooner
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Not currently mergeable. - last update
over 1 year ago 10 pass - last update
over 1 year ago 10 pass - last update
over 1 year ago 10 pass - last update
over 1 year ago 10 pass - last update
over 1 year ago CI aborted - last update
over 1 year ago 10 pass - last update
over 1 year ago 10 pass - last update
over 1 year ago 10 pass - last update
over 1 year ago 10 pass - 🇺🇸United States luke.leber Pennsylvania
+++ b/src/Plugin/CustomFieldType/Url.php @@ -119,10 +200,13 @@ class Url extends CustomFieldTypeBase { + $url = $this->buildUrl($item); + // By default use the full URL as the link text. + $link_title = $url->toString(); $build = [ '#type' => 'link', - '#title' => $output, - '#url' => DrupalUrl::fromUri($output), + '#title' => $link_title, + '#url' => $url,
Do we need an access check here in-case the (potential) referenced node isn't accessible?
- 🇺🇸United States apmsooner
Moving this to the 2.x version. Will backport when testing is in place to ensure major code revisions in 2.x can be made compatible with current 1.x implementation.
- Issue was unassigned.
- Status changed to Fixed
over 1 year ago 2:18am 31 August 2023