- Issue created by @Grimreaper
- 🇫🇷France Grimreaper France 🇫🇷
In core app/core/modules/system/system.module:
// Handle setting the "active" class on links by: // - loading the active-link library if the current user is authenticated; // - applying a response filter if the current user is anonymous. // @see \Drupal\Core\Link // @see \Drupal\Core\Utility\LinkGenerator::generate() // @see template_preprocess_links() // @see \Drupal\Core\EventSubscriber\ActiveLinkResponseFilter $page['#cache']['contexts'][] = 'user.roles:authenticated'; if (\Drupal::currentUser()->isAuthenticated()) { $page['#attached']['library'][] = 'core/drupal.active-link'; }
Not possible to override this behavior in ui_suite_bootstrap as themes can't have services. So will override in Sobki.
- Merge request !28Issue #3492206 by grimreaper, lyjab: Fix active class on link for anonymous → (Merged) created by Grimreaper
- 🇫🇷France Grimreaper France 🇫🇷
We does not check if the current theme is the front theme as it is triggered only for anonymous users so with the front theme.
-
grimreaper →
committed 27f4f91f on 10.0.x
Issue #3492206 by grimreaper, lyjab: Fix active class on link for...
-
grimreaper →
committed 27f4f91f on 10.0.x
Automatically closed - issue fixed for 2 weeks with no activity.