Skip to content

Commit

Permalink
fix: Use relative paths to dav root
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Aug 13, 2024
1 parent c233885 commit 6912165
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/services/WebdavClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
*
*/

import { davGetClient } from '@nextcloud/files'
import { davGetClient, davRootPath, davGetRemoteURL } from '@nextcloud/files'

export const client = davGetClient()
const davRemote = davGetRemoteURL()

export const client = davGetClient(`${davRemote}${davRootPath}`)
3 changes: 0 additions & 3 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,6 @@ export default {
* @param {string|null} overrideHandlerId the ID of the handler with which to view the files, if any
*/
async openFile(path, overrideHandlerId = null) {
if (!path.startsWith(davRootPath)) {
path = `${davRootPath}${path}`
}
await this.beforeOpen()
// cancel any previous request
Expand Down

0 comments on commit 6912165

Please sign in to comment.