diff --git a/packages/nc-gui/components/dashboard/TreeView/Table/Node.vue b/packages/nc-gui/components/dashboard/TreeView/Table/Node.vue index 10245eac4f..814b24053c 100644 --- a/packages/nc-gui/components/dashboard/TreeView/Table/Node.vue +++ b/packages/nc-gui/components/dashboard/TreeView/Table/Node.vue @@ -418,7 +418,7 @@ const enabledOptions = computed(() => {
= { + collaborator: 'members', + 'data-source': 'data-sources', + permissions: 'permissions', + syncs: 'syncs', + 'base-settings': 'settings', + audits: 'audits', + workflows: 'workflows', + overview: 'overview', +} + watch(projectPageTab, () => { $e(`a:project:view:tab-change:${projectPageTab.value}`) - // Don't navigate when tab is controlled by route path (admin pages) - if (props.tab) return + // When tab is controlled by route path (admin pages), navigate to clean URL + if (props.tab) { + const slug = tabToSlug[projectPageTab.value] || projectPageTab.value + const wsId = route.value.params.typeOrId + const baseId = route.value.params.baseId + navigateTo(`/${wsId}/${baseId}/admin/${slug}`) + return + } navigateToProjectPage({ page: projectPageTab.value as any, @@ -335,7 +352,7 @@ watch(