eca_render: Action "Render: link" does not allow to set a URL longer than 128 characters

Created on 26 May 2025, 8 days ago

Problem/Motivation

The render action "Render: link" does not allow to set a URL that is longer than 128 characters.

Steps to reproduce

  • Have a standard Drupal site with eca_render and one modeler enabled, such as bpmn_io
  • Create an ECA configuration and add "Render: link" action
  • Try to insert a URL longer than 128 characters -> you will see a validation error message

Proposed resolution

Increase maximum allowed length to be way larger, something like 1024 characters maybe.
The configuration field is here:
https://git.drupalcode.org/project/eca/-/blob/3.0.x/modules/render/src/P...

Remaining tasks

I suspect that many other textfields are affected by this problem. We'd need to increase the length also there. But this issue is just about the specific action to be fixed. We could create a follow-up for covering this in general.

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇩🇪Germany mxh Offenburg

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

Comments & Activities

  • Issue created by @mxh
  • 🇩🇪Germany jurgenhaas Gottmadingen

    I ran into this before as well, especially when building URLs with a lot of tokens. As a workaround, I used the "Token: set value" action to build the URL and then use that token in the render link action. But supporting longer text strings directly would certainly make sense. I read somewhere that core is actually doing something similar, or maybe the default max length for text fields will even be increased in the field widget.

    However, we should define the max length of most if not all text fields to 1024, as @mxh suggested. Perhaps we could do that right here in this issue, without a follow-up later on.

Production build 0.71.5 2024