Skip to content
Snippets Groups Projects

Issue #3307519 by Darren Oh: Fix workspace link not redirecting to current page

Issue #3307519 by Darren Oh: Fix workspace link not redirecting to current page

Link was redirecting to the page where the toolbar was first generated.

Closes #3307519

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
273 'title' => t('Switch workspace'),
274 'class' => ['use-ajax', 'toolbar-icon', 'toolbar-icon-workspace'],
275 'data-dialog-type' => 'dialog',
276 'data-dialog-renderer' => 'off_canvas_top',
277 'data-dialog-options' => Json::encode([
278 'height' => 161,
279 'classes' => [
280 'ui-dialog' => 'workspaces-dialog',
281 ],
282 ]),
267 '#lazy_builder' => [
268 'workspaces.lazy_builders:renderToolbarTab',
269 [],
283 270 ],
284 '#cache' => ['tags' => $active_workspace ? $active_workspace->getCacheTags() : []],
271 '#create_placeholder' => TRUE,
  • 46 'use-ajax',
    47 ],
    48 'data-dialog-type' => 'dialog',
    49 'data-dialog-renderer' => 'off_canvas_top',
    50 'data-dialog-options' => Json::encode([
    51 'height' => 161,
    52 'classes' => [
    53 'ui-dialog' => 'workspaces-dialog',
    54 ],
    55 ]),
    56 ],
    57 '#attached' => [
    58 'library' => ['workspaces/drupal.workspaces.toolbar'],
    59 ],
    60 '#cache' => [
    61 'contexts' => ['url.path'],
  • added 1 commit

    • 799ec44d - Disable caching for the toolbar workspace switcher.

    Compare with previous version

  • Please register or sign in to reply
    Loading