summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLouis <6653109+artonge@users.noreply.github.com>2023-03-08 10:20:43 +0100
committerGitHub <noreply@github.com>2023-03-08 10:20:43 +0100
commit88b03d69cedab6f210178e9dcb04bc512beeb9be (patch)
treefd9f32355a56151417a31aa55dd6990e1f7fa728 /apps
parent11a0cb7f22a37f79b2818af9180de6cb24b02471 (diff)
parent72e2cabf40ace9699bbea5983a7a73c6ff7cf6ba (diff)
downloadnextcloud-server-88b03d69cedab6f210178e9dcb04bc512beeb9be.tar.gz
nextcloud-server-88b03d69cedab6f210178e9dcb04bc512beeb9be.zip
Merge pull request #37060 from nextcloud/fix/versions-webroot-url
Fix download URL for versions
Diffstat (limited to 'apps')
-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 6a9bac977a8..e584eb887a3 100644
--- a/apps/files_versions/src/components/Version.vue
+++ b/apps/files_versions/src/components/Version.vue
@@ -116,7 +116,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'
export default {
@@ -204,9 +204,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
}
},