Skip to content

Jumping to random CMS tabs when navigating pages #1684

Open
@satrun77

Description

@satrun77

Module version(s) affected

5.1, but basically every version ever made.

Description

The CMS tries to remember what tab you were looking at when you save your page.

This is there so the content author stays on the same tab when the response comes back from the server. However, it remember your tab for the rest of your session. So you keep going back to that tab by default all the time.

Related issue silverstripe/silverstripe-cms#2924

How to reproduce

  • Go to a CMS page with tabs.
  • Access a tab different from Main.
  • Save the page.
  • You stay on the same tab.
  • Navigate to a different page in the CMS.
  • Come back to your original page.

Possible Solution

Find the bit that reload the tab you were looking at on step 4, and unset the session storage flag after you read it.

Additional Context

The currently displayed tab is recorded in the session storage on save.

Validations

  • Check that there isn't already an issue that reports the same bug
  • Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)

PRs

See #1684 (comment) about changes that are still required

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions