<nolink>, <button> and <front> get validation errors in menus

Created on 20 February 2025, 2 months ago

Problem/Motivation

On a fresh Drupal install, menu link description supports entering <nolink>, <button> and <front>.

Start typing the title of a piece of content to select it. You can also enter an internal path such as /node/add or an external URL such as https://example.com. Enter <front> to link to the front page. Enter <nolink> to display link text only. Enter <button> to display keyboard-accessible link text only.

The fix in 🐛 Firefox error with link validation regex patterns Active fixes a jQuery issue which allows the validation to work but also fails to account for these valid placeholders.

Steps to reproduce

1. Install a new site with clientside_validation enabled.
2. Go to add a link to a menu.
3. Enter a Menu link title and a Link entry of <nolink>
4. Observe the HTML validation error "Please match the requested format."

Proposed resolution

Add <nolink>, <button> and <front> to the clientside_validation regex.

🐛 Bug report
Status

Active

Version

4.1

Component

Code

Created by

🇺🇸United States j_s

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