We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c233885 commit c2ec4adCopy full SHA for c2ec4ad
2 files changed
src/services/WebdavClient.ts
@@ -20,6 +20,6 @@
20
*
21
*/
22
23
-import { davGetClient } from '@nextcloud/files'
+import { davGetClient, davRootPath, davGetRemoteURL } from '@nextcloud/files'
24
25
-export const client = davGetClient()
+export const client = davGetClient(davGetRemoteURL() + '/' + davRootPath)
src/views/Viewer.vue
@@ -599,9 +599,6 @@ export default {
599
* @param {string|null} overrideHandlerId the ID of the handler with which to view the files, if any
600
601
async openFile(path, overrideHandlerId = null) {
602
- if (!path.startsWith(davRootPath)) {
603
- path = `${davRootPath}${path}`
604
- }
605
await this.beforeOpen()
606
607
// cancel any previous request
0 commit comments