diff --git a/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue b/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue
index 6e787aca18..23672823c3 100644
--- a/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue
+++ b/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue
@@ -10,7 +10,7 @@
-
diff --git a/packages/web-pkg/src/composables/spaces/useGetMatchingSpace.ts b/packages/web-pkg/src/composables/spaces/useGetMatchingSpace.ts
index 8462c7601a..632e2704cf 100644
--- a/packages/web-pkg/src/composables/spaces/useGetMatchingSpace.ts
+++ b/packages/web-pkg/src/composables/spaces/useGetMatchingSpace.ts
@@ -1,5 +1,5 @@
import { useRouteParam } from '../router'
-import { Resource, SpaceResource } from '@opencloud-eu/web-client'
+import { isIncomingShareResource, Resource, SpaceResource } from '@opencloud-eu/web-client'
import {
MountPointSpaceResource,
extractStorageId,
@@ -81,7 +81,8 @@ export const useGetMatchingSpace = (options?: GetMatchingSpaceOptions) => {
return (
resource?.storageId &&
resource?.storageId === spacesStore.personalSpace?.storageId &&
- resource?.path === '/'
+ resource?.path === '/' &&
+ !isIncomingShareResource(resource)
)
}