Improve description of the destination query parameter

Created on 15 March 2024, 4 months ago

Problem/Motivation

There can be error if value for the destination query parameter doesn't begin with '/':
InvalidArgumentException: The user-entered string 'product/1' must begin with a '/', '?', or '#'. in Drupal\Core\Url::fromUserInput() (line 216 of core/lib/Drupal/Core/Url.php).

Steps to reproduce

Use some path without '/' at the beginning of the value for the destination query parameter.
Example: /cart-links/1-2?destination=product/1

Proposed resolution

Improve description on the project's page and readme file.

πŸ“Œ Task
Status

Active

Version

1.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡¦Ukraine khiminrm

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

Comments & Activities

Production build 0.69.0 2024