From 561f24933a841fc1e07d0761e768f41713480974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 4 Dec 2019 18:53:46 +0100 Subject: [PATCH] Use file path to obtain workspace direct editing links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Controller/WorkspaceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])