Skip to content

Commit

Permalink
fix: resolving links without drive alias
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Dec 12, 2023
1 parent 585282a commit 5c984de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-resolve-link-without-drive-alias
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions packages/web-app-files/src/views/spaces/DriveResolver.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c984de

Please sign in to comment.