fix: org-settings redirect uses router.back() to stay on current page
This commit is contained in:
@@ -22,8 +22,9 @@ function OrgSettingsInner() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const mappedTab = tab ? tabMap[tab] || 'general' : 'general'
|
const mappedTab = tab ? tabMap[tab] || 'general' : 'general'
|
||||||
router.replace('/')
|
// Go back to wherever the user came from (not always /)
|
||||||
setTimeout(() => openUnifiedSettings({ context: 'workspace', tab: mappedTab }), 100)
|
router.back()
|
||||||
|
setTimeout(() => openUnifiedSettings({ context: 'workspace', tab: mappedTab }), 200)
|
||||||
}, [searchParams, router, openUnifiedSettings])
|
}, [searchParams, router, openUnifiedSettings])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user