Skip to content
Snippets Groups Projects

Issue #3360996: template_preprocess_views_view_summary_unformatted() does not set active link when using AJAX

Open Issue #3360996: template_preprocess_views_view_summary_unformatted() does not set active link when using AJAX
1 unresolved thread
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Pierre Rudloff added 1 commit

    added 1 commit

    • 73573668 - Don't duplicate ways to get the current path

    Compare with previous version

  • Pierre Rudloff added 2 commits

    added 2 commits

    • 4ec20d18 - Fix related test
    • 3767379f - template_preprocess_views_view_summary() has the same problem

    Compare with previous version

  • Pierre Rudloff added 1 commit

    added 1 commit

    • dc4966a2 - I don't think using the route match adds anything

    Compare with previous version

  • 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
    Loading