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.

Issue fork firebase-3356782

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bmunslow created an issue. See original summary.

bmunslow’s picture

Title: Add module dependency requirement for firebase.help route » Add help module dependency requirement for firebase.help route

ptmkenny’s picture

Status: Active » Needs review
bmunslow’s picture

Status: Needs review » Needs work

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.

bmunslow’s picture

Status: Needs work » Needs review

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