diff --git a/resources/js/components/SessionExpiry.vue b/resources/js/components/SessionExpiry.vue index ac7666fd12..5a8dd86c05 100644 --- a/resources/js/components/SessionExpiry.vue +++ b/resources/js/components/SessionExpiry.vue @@ -300,6 +300,12 @@ export default { this.$toast.success(__('Logged in')); this.restartCountdown(); this.updateCsrfToken(); + this.restoreSelectedSite(); + }, + + restoreSelectedSite() { + const site = Statamic.$config.get('selectedSite'); + if (site) this.$axios.get(cp_url(`select-site/${site}`)); }, }, };