URItoURL plugin

Created on 12 October 2024, 3 months ago

Problem/Motivation

A number of custom link field modules (including Core's 'link' field) provide a token that resolves to the URI but not the URL. If you are attempting to generate a valid 'href=' from such a token, you can't, as the result for an internal link will have an 'entity:' or 'internal:' prefix.

It would be nice to be able to replace the URI from such a token with the actual URL.

Proposed resolution

See attached PlugIn for this module, which does this.

For an example custom link field 'field_link' with the URI token:
[field_link:uri]
the token modifier that uses this plugin would be:
[token-modifier:uritourl:field_link:uri]

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom kmv

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

Comments & Activities

  • Issue created by @kmv
  • Status changed to Closed: won't fix about 1 month ago
  • 🇬🇧United Kingdom jofitz

    Thanks for the plugin, @kmv.

    I don't think there will be a enough need for this modifier but I will link to this issue from the project page so people can find the code if they need to.

Production build 0.71.5 2024