Add support for more parameters

Created on 11 December 2024, 7 days ago

Problem/Motivation

I want to add a dynamic URL rewrite for the route entity.group_relationship.create_form, but I can only use the first parameter, while the original route contains two: {group} and {plugin_id}.
See screenshot for details.

Steps to reproduce

  1. Setup Drupal
  2. Install group module
  3. Add a relationship to content
  4. Test the relationship
  5. Add a dynamic path rewrite for the path entity.group_relationship.create_form
  6. Notice in the description of field path there's only {group} as a parameter
  7. Fill in a path like the original (containing {plugin_id}
  8. Replace "group" by "communities"
  9. Save the form
  10. See error "Path includes non-valid characters."

Proposed resolution

Find a way to get the dynamic url parameters, based on the route instead of via the entity type.

Remaining tasks

Testing.

User interface changes

None

API changes

None

Data model changes

None.

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇧🇪Belgium blacksnipe

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

Comments & Activities

Production build 0.71.5 2024