diff --git a/src/WebDAV/WebDAVAdapter.php b/src/WebDAV/WebDAVAdapter.php index 491cca025..8906bb450 100644 --- a/src/WebDAV/WebDAVAdapter.php +++ b/src/WebDAV/WebDAVAdapter.php @@ -336,7 +336,7 @@ public function move(string $source, string $destination, Config $config): void try { $response = $this->client->request('MOVE', '/' . ltrim($location, '/'), null, [ - 'Destination' => '/' . ltrim($newLocation, '/'), + 'Destination' => $this->client->getAbsoluteUrl('/' . ltrim($newLocation, '/')), ]); if ($response['statusCode'] < 200 || $response['statusCode'] >= 300) { @@ -372,7 +372,7 @@ public function copy(string $source, string $destination, Config $config): void try { $response = $this->client->request('COPY', '/' . ltrim($location, '/'), null, [ - 'Destination' => '/' . ltrim($newLocation, '/'), + 'Destination' => $this->client->getAbsoluteUrl('/' . ltrim($newLocation, '/')), ]); if ($response['statusCode'] < 200 || $response['statusCode'] >= 300) {