Fix an InvalidArgumentException

Created on 2 April 2024, 17 days ago
Updated 3 April 2024, 16 days ago

Problem/Motivation

If in the URI field of the CTA link insert '#', the block doesn't add and in the log, we see the next error:

InvalidArgumentException: The user-entered string '' must begin with a '/', '?', or '#'. in docroot/core/lib/Drupal/Core/Url.php

Steps to reproduce

  • log in as admin
  • create a Landing page LB
  • open LB
  • add Donate block
  • fill in required fields
  • add β€œ#” in url
  • add label
  • click on the add block

Proposed resolution

Let's fix it

πŸ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine aleevas

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

Merge Requests

Comments & Activities

Production build https://api.contrib.social 0.62.1