Form API Url element validates only against the absolute Urls

Created on 31 August 2023, about 1 year 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 2 days 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.71.5 2024