Form API Url element validates only against the absolute Urls

Created on 31 August 2023, 10 months ago

Problem/Motivation

When using the Url Form API element in a custom form, only absolute Urls are allowed - the 2nd parameter of the UrlHelper::isValid() is hardcoded to TRUE

Proposed resolution

Wouldn't it make more sense to pass this parameter to the #element_validate callback? As a new element property for example

📌 Task
Status

Active

Version

10.1 ✨

Component
Form  →

Last updated about 18 hours ago

Created by

🇨🇦Canada klimp Montréal, QC

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

Comments & Activities

Production build 0.69.0 2024