diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-03-06 10:24:31 -0800 |
---|---|---|
committer | Louis (Rebase PR Action) <artonge@users.noreply.github.com> | 2023-03-07 10:14:33 +0000 |
commit | 72e2cabf40ace9699bbea5983a7a73c6ff7cf6ba (patch) | |
tree | a09d6c8be6968fc9d8f13453307a9e7d2135d0c9 /apps/files_versions | |
parent | 55db9780900a848d92af16d4ee1e762a1bfa33b2 (diff) | |
download | nextcloud-server-72e2cabf40ace9699bbea5983a7a73c6ff7cf6ba.tar.gz nextcloud-server-72e2cabf40ace9699bbea5983a7a73c6ff7cf6ba.zip |
Fix download URL for versions
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/src/components/Version.vue | 6 |
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 } }, |