diff --git a/changelog/unreleased/bugfix-resolve-link-without-drive-alias b/changelog/unreleased/bugfix-resolve-link-without-drive-alias new file mode 100644 index 00000000000..6afee44f332 --- /dev/null +++ b/changelog/unreleased/bugfix-resolve-link-without-drive-alias @@ -0,0 +1,6 @@ +Bugfix: Resolving links without drive alias + +Resolving links without a drive alias has been fixed in case a fileId is given via query param. + +https://github.com/owncloud/web/pull/10154 +https://github.com/owncloud/web/issues/9269 diff --git a/packages/web-app-files/src/views/spaces/DriveResolver.vue b/packages/web-app-files/src/views/spaces/DriveResolver.vue index b2a9f13f0ad..7b7304afab7 100644 --- a/packages/web-app-files/src/views/spaces/DriveResolver.vue +++ b/packages/web-app-files/src/views/spaces/DriveResolver.vue @@ -129,6 +129,18 @@ export default defineComponent({ } onMounted(async () => { + if (!unref(driveAliasAndItem) && unref(fileId)) { + return router.push({ + name: 'resolvePrivateLink', + params: { fileId: unref(fileId) }, + query: { + ...(configurationManager.options.openLinksWithDefaultApp && { + openWithDefaultApp: 'true' + }) + } + }) + } + const space = unref(resolvedDrive.space) if (space && isPublicSpaceResource(space)) { const isRunningOnEos = store.getters.configuration?.options?.runningOnEos