diff --git a/lib/Controller/WorkspaceController.php b/lib/Controller/WorkspaceController.php index 97b0bb92a80..fb8b52cef10 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($path, Application::APP_NAME); + $token = $this->directEditingManager->open($path . '/'. $file->getName(), Application::APP_NAME); } return new DataResponse([ 'url' => $this->urlGenerator->linkToRouteAbsolute('files.DirectEditingView.edit', ['token' => $token])