Add help module dependency requirement for firebase.help route

Created on 27 April 2023, almost 2 years ago
Updated 8 June 2023, over 1 year ago

Problem/Motivation

Ensure that the help module is enabled before allowing access to the firebase.help route, which relies on functionality provided by the help module.

Proposed resolution

Add a new requirement to the firebase.help route in the firebase.routing.yml file that checks for the help module to be enabled. This will ensure that the firebase.help route is only accessible when the help module is enabled.

📌 Task
Status

Needs review

Version

3.0

Component

Code

Created by

🇪🇸Spain bmunslow

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

Comments & Activities

  • Issue created by @bmunslow
  • @bmunslow opened merge request.
  • Status changed to Needs review almost 2 years ago
  • Status changed to Needs work over 1 year ago
  • 🇪🇸Spain bmunslow

    It looks like the above commit is not enough to fix the issue. Accessing the firebase.configuration route throws the following exception:

    Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Route "firebase.help" does not exist." at /var/www/html/docroot/core/lib/Drupal/Core/Routing/RouteProvider.php line 206

    The issue lies in the firebase.help local task, which remains defined if the help module is uninstalled and references the non-existing route firebase.help.

  • Status changed to Needs review over 1 year ago
  • 🇪🇸Spain bmunslow

    Fixed issue by providing a derivative to generate the help local task dynamically, only if the help module is enabled.

Production build 0.71.5 2024