Allow URL Input to Accept a Token

Created on 16 October 2023, about 1 year ago

Problem/Motivation

The URL field in the configuration is not currently set up to accept tokens. Tokens should be able to be generated dynamically based on content or current page.

Steps to reproduce

Put a token into the URL field on block configuration and see that the token is rendered as a plain-text token in the front end UI.

Proposed resolution

Add logic to `addtoany_create_data()` in `addtoany.module` to allow the URL to be converted via Token if it is a token.

Remaining tasks

User interface changes

Likewise, the description of the field should include a link that provides the AJAX Popup for available tokens.

API changes

NONE

Data model changes

NONE

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mighty_webber

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

Comments & Activities

Production build 0.71.5 2024