Prepopulate fields in template form

Created on 30 August 2024, 3 months ago

Problem/Motivation

In the "Page Template" module in Drupal, there is an issue when creating a template and trying to pass additional query parameters. These parameters are being stripped out during the redirection process. This behavior is problematic, especially when using the "Prepopulate" module or when you want to extract values from the query string and populate form fields via hook_form_alter().

Steps to reproduce

Create a new template using the "Page Template" module.
Add additional query parameters to the URL (e.g., ?field1=value1&field2=value2).
Trigger a redirection to the template.
Observe that the query parameters are missing after the redirection.

Proposed resolution

Modify the "Page Template" module to ensure that query parameters are preserved during the redirection process. This might involve adjusting the redirection logic to include the full query string.

Feature request
Status

Active

Version

1.2

Component

Code

Created by

🇨🇭Switzerland ruvus Chur

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

Comments & Activities

Production build 0.71.5 2024