Config page throws error when help module is not enabled

Created on 17 December 2024, 4 months ago

Problem/Motivation

The config page has a link to the help page we generate in hook_help, which works as long as you have the help module enabled.

Because the help module isn't a dependency, you can disable it and hook_help won't run and the route to the help page won't exist- this normally isn't a big deal, however we also call Url::fromRoute('help.page', ['name' => 'vuejs'])->toString() without checking if the Url exists first. This causes the config page to white-screen.

Steps to reproduce

1. Ensure the vuejs module is enabled
2. Ensure the help module is _not_ enabled
3. Go to the vuejs config page
4. See error

Proposed resolution

Add the help module to the projects dependencies or add a check before we assume that route exists.

📌 Task
Status

Active

Version

3.2

Component

Code

Created by

🇨🇦Canada nickdjm

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024