diff --git a/lib/Controller/WorkspaceController.php b/lib/Controller/WorkspaceController.php index 46acbf2a74b..97b0bb92a80 100644 --- a/lib/Controller/WorkspaceController.php +++ b/lib/Controller/WorkspaceController.php @@ -178,7 +178,7 @@ public function direct(string $path): DataResponse { if ($file === null) { $token = $this->directEditingManager->create($path . '/'. self::SUPPORTED_FILENAMES[0], Application::APP_NAME, 'textdocument'); } else { - $token = $this->directEditingManager->open($file->getId(), Application::APP_NAME); + $token = $this->directEditingManager->open($path, Application::APP_NAME); } return new DataResponse([ 'url' => $this->urlGenerator->linkToRouteAbsolute('files.DirectEditingView.edit', ['token' => $token])