- 🇳🇿New Zealand klidifia
If the token resolves to an internal URL (e.g. an internal node selected from an autocomplete lookup), this won't render as a link.
Have taken the 24.patch on GitLab and added:
if (strpos($uri, '/') === 0) { $uri = 'internal:' . $uri; }
Before the:
$replacements[$original] = Markup::create($uri);
The last submitted patch, 31: token-link-support-3112449-31.patch, failed testing. View results →
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- Status changed to Needs work
over 1 year ago 8:02pm 27 March 2023 - 🇳🇿New Zealand klidifia
Unsure how to introduce path_alias into the test setup for this as TokenFieldUiTest extends TokenTestBase
- 🇺🇸United States Webbeh Georgia, USA
What does the patch in #34 do? How is it different than #31? Can you provide any context to what the patch fixes?
- 🇺🇸United States bcobin
I'm trying to write an embedded .mp3 player for a file field (displayed as a link) and Token appends "internal:" to the path, causing the player to fail. It's a site with not a ton of audio, so I'm working around it by rewriting the title to point to the file URL and using [node:field_audio_file:title] to send the URL to the player, but there should be an option to use the path without appending "internal:" to it.
My issue seems to be related to the discussion here, so I'm passing along the use case and trying to stay in the loop. This is a Drupal 10 site and the patch looks fairly substantial, so I'll hope for a commit. Thanks!
- 🇪🇸Spain oskar_calvo
I'd like to know if it's posible to apply the patch to drupal 9.x and 10.x
Thanks.
- Status changed to Needs review
4 months ago 7:40am 1 August 2024