Issue #3360996: template_preprocess_views_view_summary_unformatted() does not set active link when using AJAX
Open
requested to merge issue/drupal-3360996:3360996-templatepreprocessviewsviewsummaryunformatted-does-not into 11.x
1 unresolved thread
Merge request reports
Activity
added 5608 commits
-
79887657...70cfbbe0 - 5607 commits from branch
project:11.x
- b46b015a - Use path.current service to get active URL
-
79887657...70cfbbe0 - 5607 commits from branch
- Resolved by Stephen Mustgrave
added 1 commit
- 73573668 - Don't duplicate ways to get the current path
- Resolved by Stephen Mustgrave
added 1 commit
- dc4966a2 - I don't think using the route match adds anything
254 254 } 255 255 256 $currentPath = \Drupal::service('path.current')->getPath(); 256 257 $active_urls = [ 257 258 // Force system path. 258 Url::fromRoute('<current>', [], ['alias' => TRUE])->toString(), 259 // Force system path. 260 Url::fromRouteMatch(\Drupal::routeMatch())->setOption('alias', TRUE)->toString(), 261 // Could be an alias. 262 Url::fromRoute('<current>')->toString(), 259 Url::fromUserInput($currentPath, ['alias' => TRUE])->toString(), 263 260 // Could be an alias. 264 Url::fromRouteMatch(\Drupal::routeMatch())->toString(), 261 Url::fromUserInput($currentPath)->toString(), 265 262 ]; 266 263 $active_urls = array_combine($active_urls, $active_urls);
Please register or sign in to reply