Error in destination path when breaking lock on a Block

Created on 2 August 2017, about 7 years ago
Updated 26 March 2024, 6 months ago

Hi,

Running -alpha2 on Drupal 8.3.5, when I confirm to break a lock on a Block, it results in the error message: "The website encountered an unexpected error. Please try again later."

The URL for the confirmation page is "/admin/break-lock/block/14?destination=node/1"

When this is manually changed to "/admin/break-lock/block/14?destination=/node/1"with the additional / before "node" then things work as expected.

In dblog there is the following message:

Location	[domain]/admin/break-lock/block/13?destination=node%2F1
Referrer	[domain]/admin/break-lock/block/13?destination=node/1
Message	InvalidArgumentException: The user-entered string 'node/1' must begin with a '/', '?', or '#'. in Drupal\Core\Url::fromUserInput() (line 204 of /home/[site]/external_html/core/lib/Drupal/Core/Url.php).

Note: This problem doesn't seem to exist on node content, only on blocks.

Also, thank you for this really helpful module :)

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom richard_productowner

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Tried replicating in 8.x-2.x but could not? Could anyone confirm they are still seeing the issue please?

  • Status changed to Closed: cannot reproduce 6 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Tried again on 8.x-2.x but still not able to reproduce. Going to close for now. If still a bug please reopen with additional steps if possible thanks.

Production build 0.71.5 2024