summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-11-01 18:44:51 +0100
committerGitHub <noreply@github.com>2023-11-01 18:44:51 +0100
commite4efb922b471080052bb91d06861dd847479cc3d (patch)
tree1501761dc497a45a8a9de74d1027e55e1c861ba6 /apps/files_versions
parentdd1a98001936b2ec13555e486be07dbc271272fa (diff)
parent17d009b1e40af235b094a6a99248b543d77f3059 (diff)
downloadnextcloud-server-e4efb922b471080052bb91d06861dd847479cc3d.tar.gz
nextcloud-server-e4efb922b471080052bb91d06861dd847479cc3d.zip
Merge pull request #40946 from nextcloud/artonge/backport/stable26/37060
[stable26] Fix download URL for versions
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/src/components/Version.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_versions/src/components/Version.vue b/apps/files_versions/src/components/Version.vue
index f91e3b47178..90435abd9be 100644
--- a/apps/files_versions/src/components/Version.vue
+++ b/apps/files_versions/src/components/Version.vue
@@ -120,7 +120,7 @@ import { NcActionButton, NcActionLink, NcListItem, NcModal, NcButton, NcTextFiel
import moment from '@nextcloud/moment'
import { translate } from '@nextcloud/l10n'
import { joinPaths } from '@nextcloud/paths'
-import { generateUrl } from '@nextcloud/router'
+import { generateUrl, getRootUrl } from '@nextcloud/router'
import { loadState } from '@nextcloud/initial-state'
import { emit } from '@nextcloud/event-bus'
@@ -213,9 +213,9 @@ export default {
*/
downloadURL() {
if (this.isCurrent) {
- return joinPaths('/remote.php/webdav', this.fileInfo.path, this.fileInfo.name)
+ return getRootUrl() + joinPaths('/remote.php/webdav', this.fileInfo.path, this.fileInfo.name)
} else {
- return this.version.url
+ return getRootUrl() + this.version.url
}
},