Skip to content

Commit c2ec4ad

Browse files
committed
fix: Use relative paths to dav root
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent c233885 commit c2ec4ad

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/services/WebdavClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
*
2121
*/
2222

23-
import { davGetClient } from '@nextcloud/files'
23+
import { davGetClient, davRootPath, davGetRemoteURL } from '@nextcloud/files'
2424

25-
export const client = davGetClient()
25+
export const client = davGetClient(davGetRemoteURL() + '/' + davRootPath)

src/views/Viewer.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,6 @@ export default {
599599
* @param {string|null} overrideHandlerId the ID of the handler with which to view the files, if any
600600
*/
601601
async openFile(path, overrideHandlerId = null) {
602-
if (!path.startsWith(davRootPath)) {
603-
path = `${davRootPath}${path}`
604-
}
605602
await this.beforeOpen()
606603
607604
// cancel any previous request

0 commit comments

Comments
 (0)