diff --git a/packages/nc-gui/layouts/shared-view.vue b/packages/nc-gui/layouts/shared-view.vue
index a090e8574d..d4ad57966c 100644
--- a/packages/nc-gui/layouts/shared-view.vue
+++ b/packages/nc-gui/layouts/shared-view.vue
@@ -79,7 +79,7 @@ export default {
-
+
diff --git a/packages/nc-gui/pages/index.vue b/packages/nc-gui/pages/index.vue
index 4408abea77..0d265cc07b 100644
--- a/packages/nc-gui/pages/index.vue
+++ b/packages/nc-gui/pages/index.vue
@@ -40,6 +40,12 @@ const isSharedView = computed(() => {
return !routeName.startsWith('index-typeOrId-projectId-') && !['index', 'index-typeOrId'].includes(routeName)
})
+const isSharedFormView = computed(() => {
+ const routeName = (route.value.name as string) || ''
+ // check route is shared form view route
+ return routeName.startsWith('index-typeOrId-form-viewId')
+})
+
async function handleRouteTypeIdChange() {
// avoid loading projects for shared views
if (isSharedView.value) {
@@ -91,7 +97,10 @@ provide(ToggleDialogInj, toggleDialog)
-
+
+
+
+
diff --git a/packages/nc-gui/pages/index/[typeOrId].vue b/packages/nc-gui/pages/index/[typeOrId].vue
index 5800abe05f..dd75602bd7 100644
--- a/packages/nc-gui/pages/index/[typeOrId].vue
+++ b/packages/nc-gui/pages/index/[typeOrId].vue
@@ -5,7 +5,7 @@ const route = router.currentRoute
-
+
diff --git a/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index.vue b/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index.vue
index a71d70fbdb..ea043051fb 100644
--- a/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index.vue
+++ b/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index.vue
@@ -38,7 +38,7 @@ router.afterEach((to) => shouldRedirect(to.name as string))