Redirection after email validation fails with relative URL

Created on 30 May 2025, 13 days ago

Problem/Motivation

When a user clicks the email validation link, they are not redirected to the configured redirect URL if that URL is relative.

Steps to reproduce

  1. Create a webform with an email validation handler.
  2. Under the โ€œAdvancedโ€ tab, in the Additional Settings fieldset, set a redirect path with a relative value, such as /index.
  3. Fill out and submit the webform. Click the link in the email it generates.
  4. Observe that the resulting URL is not the one you configured in step 2.

Proposed resolution

Fix the URL validation code in WebformEmailConfirmationController::confirmation() so that it treats relative URLs as valid.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States daniel_j

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024