diff --git a/src/components/File.vue b/src/components/File.vue index a7901e4c7..455b4668b 100644 --- a/src/components/File.vue +++ b/src/components/File.vue @@ -25,7 +25,7 @@ data-test="media" :class="{selected}"> @@ -71,8 +71,7 @@ import Star from 'vue-material-design-icons/Star' import VideoIcon from 'vue-material-design-icons/Video.vue' -import { generateRemoteUrl, generateUrl } from '@nextcloud/router' -import { getCurrentUser } from '@nextcloud/auth' +import { generateUrl } from '@nextcloud/router' import { NcCheckboxRadioSwitch } from '@nextcloud/vue' import UserConfig from '../mixins/UserConfig.js' @@ -121,10 +120,6 @@ export default { }, computed: { - /** @return {string} */ - davPath() { - return generateRemoteUrl(`dav/files/${getCurrentUser().uid}`) + this.file.filename - }, /** @return {string} */ ariaDescription() { return `image-description-${this.file.fileid}` diff --git a/src/components/FileLegacy.vue b/src/components/FileLegacy.vue index 7e0a152d6..16ea8aa2d 100644 --- a/src/components/FileLegacy.vue +++ b/src/components/FileLegacy.vue @@ -25,7 +25,7 @@ 'file--cropped': croppedLayout, }" class="file" - :href="davPath" + :href="item.injected.source" :aria-label="ariaLabel" @click.prevent="openViewer">
@@ -57,8 +57,7 @@