Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
entity.flag.enable:
path: '/flag/enable/{flag}'
This path means that when you go to enable a flag, you switch to the site theme. We could fix this by adding code to declare this path as an admin path, but I think it's simpler to change the path to /admin/structure/flags/manage/{flag}/enable -- which is where I'd have expected this path to be.
Same applies to disable and reset.
Postponed until #2564461: rationalize & clean up test classes is resolved, as this requires changes to tests.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2581505-5.flag_.flag-actions-paths.patch | 3.03 KB | joachim |
|
Comments
Comment #2
joachim CreditAttribution: joachim commentedComment #3
joachim CreditAttribution: joachim commentedComment #4
socketwench CreditAttribution: socketwench as a volunteer commentedComment #5
joachim CreditAttribution: joachim commentedAh, this is another reason keeping issue work on a local branch is great -- git rebase, run patch script, done! :)
Comment #6
socketwench CreditAttribution: socketwench as a volunteer commentedThe tests all pass in the WebUI. When I ran the tests via the CLI, however, an error popped up:
I've created #2629344: Null flag object passed to FlagTestBase::grantFlagPermissions(). for the other error.
Comment #7
joachim CreditAttribution: joachim commentedThanks!