Steps to reproduce:

1. Go to config form (admin/config/user-interface/easy-breadcrumb).
2. In Paths to replace with custom breadcrumbs text area enter

/node/1::NodeCrumb1|node/2::NodeCrumb2

path
3. Visit /node/1 page.
4. Drupal will throw following fatal error.

InvalidArgumentException: The user-entered string 'node/2' must begin with a '/', '?', or '#'. in Drupal\Core\Url::fromUserInput() (line 204 of /Applications/MAMP/htdocs/json_api/web/core/lib/Drupal/Core/Url.php).

Comments

Hardik_Patel_12 created an issue. See original summary.

hardik_patel_12’s picture

StatusFileSize
new839 bytes

Kindly review a new patch

hardik_patel_12’s picture

Assigned: hardik_patel_12 » Unassigned
Status: Needs work » Needs review
jernejbeg’s picture

Status: Needs review » Reviewed & tested by the community

Tested if the issue exists. I can confirm that once I entered the replacement string and visite node/1 an error occurred.

I can confirm that the patch 3105627-2.patch works and displays the warning message.

Good job once again Hardik_Paterl_12!

neslee canil pinto’s picture

Ya i can also confirm on this +1

neslee canil pinto’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.