diff --git a/plugins/drive-resources/src/navigation.ts b/plugins/drive-resources/src/navigation.ts index 7ee757feaf..4b3d1897dd 100644 --- a/plugins/drive-resources/src/navigation.ts +++ b/plugins/drive-resources/src/navigation.ts @@ -131,7 +131,7 @@ export async function generateFileLocation (loc: Location, id: Ref): Promi return { loc: { path: - doc.parent !== undefined + doc.parent !== undefined && doc.parent !== drive.ids.Root ? [appComponent, workspace, driveId, 'folder', doc.parent] : [appComponent, workspace, driveId], fragment: getPanelFragment(doc)