Fix: Update workspace switcher in settings (#4563)

This commit is contained in:
Mike
2025-04-23 09:57:24 +02:00
committed by GitHub
parent 603e47bc92
commit 152b5e2029
@@ -161,7 +161,10 @@ export default defineNuxtRouteMiddleware(async (to) => {
}
// 4.3 If going to workspace, set it active
if (to.path.startsWith('/workspaces/')) {
if (
to.path.startsWith('/workspaces/') ||
to.path.startsWith('/settings/workspaces/')
) {
const slug = to.params.slug as string
if (slug && belongsToWorkspace(slug)) {
mutateActiveWorkspaceSlug(slug)