Needs review
Project:
Firebase Push Notification (FCM)
Version:
3.0.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
27 Apr 2023 at 06:38 UTC
Updated:
8 Jun 2023 at 09:33 UTC
Jump to comment: Most recent
Ensure that the help module is enabled before allowing access to the firebase.help route, which relies on functionality provided by the help module.
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.
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
Comment #2
bmunslow commentedComment #4
ptmkenny commentedComment #5
bmunslow commentedIt looks like the above commit is not enough to fix the issue. Accessing the
firebase.configurationroute 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 206The issue lies in the
firebase.helplocal task, which remains defined if the help module is uninstalled and references the non-existing routefirebase.help.Comment #6
bmunslow commentedFixed issue by providing a derivative to generate the help local task dynamically, only if the help module is enabled.