The toolbar workspace switcher is not redirecting to the current page

Created on 2 September 2022, about 2 years ago
Updated 6 May 2024, 4 months ago

Problem/Motivation

The toolbar workspace switcher isn't redirecting to the current page when a switch is made. This is desirable as often one would like to compare the current page in a workspace with the Live version.

Steps to reproduce

  • Install the Workspaces module
  • Login as admin
  • Click on the "Configuration" link in the admin toolbar
  • Click the "Live" link in the top right of the toolbar to open the default workspace switcher
  • Click the "Stage" link and confirm the switch in the modal that opens

Expected result: The workspace gets switched to stage and the current page remains the "Configuration" overview page.
Actual result: The workspace is switched but the user is redirected back to the page where he landed after the login instead of the "Configuration" overview page from which the workspace switch was initiated.

Proposed resolution

Use a lazy builder for workspaces' toolbar tab, with a url.path cache context.

๐Ÿ› Bug report
Status

Fixed

Version

10.3 โœจ

Component
Workspacesย  โ†’

Last updated 1 day ago

No maintainer
Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024