URItoURL plugin

Created on 12 October 2024, about 1 month 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

1.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

Production build 0.71.5 2024