Improve D9/D10 compatibility

Created on 10 August 2023, 11 months ago

Problem/Motivation

The code still makes use of deprecated jquery.once declarations, we should drop D8 support and only support D9 going forward.

Steps to reproduce

Add a redirect node to a menu, and check the console log on the frontend.

You should see the following:

drupal.js?v=10.0.11-dev:64 Uncaught TypeError: $(...).once is not a function
    at Object.attach (redirect_node.edit_link.js?v=10.0.11-dev:22:41)
    at drupal.js?v=10.0.11-dev:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.0.11-dev:162:34)
    at drupal.init.js?v=10.0.11-dev:32:12
    at HTMLDocument.listener (drupal.init.js?v=10.0.11-dev:20:7)

Proposed resolution

Drop support for D8, supporting >=9.2 and switching to the new APIs.

Remaining tasks

Provide issue fork.

User interface changes

N/A

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

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

Comments & Activities

Production build 0.69.0 2024