Problem/Motivation
The 'Access by Taxonomy' page gets displayed in the default theme, instead of the admin theme.
Though they can be one and the same, that isn't always the case.
I believe the page should be shown in the admin theme rather than the default theme. If this would be unwanted behavior, a developer can still configure the admin theme to be the default theme.
Steps to reproduce
- Install and enabled TAC Lite
- Go to admin/appearance, and make sure you have at least 2 themes installed
- Pick a theme, and set it as your 'default' theme
- Scroll to the bottom of the page, and choose an 'admin' theme. Do not choose 'default theme' or the actual name of the theme you chose in step 3
- Edit any User, and click on the 'Access by Taxonomy' tab
- The page should be shown in the 'default' theme, not the 'admin' theme
Proposed resolution
Add the _admin_route: TRUE option to the tac_lite.user_access Route.
More information: https://www.drupal.org/docs/drupal-apis/routing-system/structure-of-routes
The tac_lite.administration Route doesn't need this, because paths that start with '/admin' are by default to be considered admin routes.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3385159-access-by-taxonomy-admin-theme.patch | 380 bytes | drumanuel |
Issue fork tac_lite-3385159
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
Comment #2
vodde83 commentedComment #4
robindh commentedRan into the same problem today. The attached merge request fixes the issue, moving to RTBC
Comment #5
drumanuel commentedPrefer a patch? I do
Comment #6
drumanuel commentedDoesn't seem to patch 1.7, working on it
Comment #7
drumanuel commentedOk, my bad, patch is OK.
Comment #8
philyPatch #5 works for using using Drupal 10.2.5
Comment #11
vladimirausThank you. Committed. 🎂