Non-existent parameter site.path

Created on 7 June 2023, over 1 year ago
Updated 30 June 2023, over 1 year ago

Problem/Motivation

CKEditor fails when editing nodes on Drupal 8.20. The error being reported is "You have requested a non-existent parameter site.path", and it points to anchor_link\src\Plugin\CKEditorPlugin\AnchorLink.php:91. This issue is at least evident in the module version I'm using, 8.x-2.6.

Proposed resolution

The "site.path" parameter was available to previous versions of Drupal, but appears to no longer be available. The solution is to first check for this parameter, and if it's not available, use \Drupal::service('site.path') instead. I've posted a patch file to resolve this.

πŸ› Bug report
Status

Active

Version

2.6

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ryankavalsky

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

Comments & Activities

Production build 0.71.5 2024