Skip to content

Site switcher resets after session expiry, UI doesn't reset #14400

@andjsch

Description

@andjsch

Bug description

When you've selected a site with the site switcher at the right top and the session expires, the selected site resets to the first one in the dropdown.

Preferably, the state selected earlier would persist, so that one could continue where left off. At the very least though, it should reset to the site that is really selected. Only a hard reload fixes the site switcher and shows the current site the CP is querying.

Image

How to reproduce

  • Select a different site than the first one
  • let the session expire
  • log back in
  • see the site switcher showing the previously selected site, but querying the first one in the list

Logs

Environment

Environment
Laravel Version: 13.2.0
PHP Version: 8.4.15
Composer Version: 2.8.11
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: Europe/Vienna
Locale: de

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / daily
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Locales
Installed: de, en
LaravelLang\Actions\Plugin: 1.12.1
LaravelLang\Attributes\Plugin: 2.15.5
LaravelLang\HttpStatuses\Plugin: 3.12.1
LaravelLang\Lang\Plugin: 15.29.2
LaravelLang\MoonShine\Plugin: INCORRECT
LaravelLang\StarterKits\Plugin: 1.10.3
Locales Version: 2.11.0
Protected: de, en
Publisher Version: 16.8.0

Statamic
Addons: 4
Sites: 3 (Deutsch, English, Placeholder)
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.8.0 PRO

Statamic Addons
schantldev/statamic-phosphoricons: 2.0.1
statamic-rad-pack/mailchimp: 6.2.1
studio1902/statamic-peak-seo: 11.1.0
studio1902/statamic-peak-tools: 9.0.2

Installation

Existing Laravel app

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions