From 61297bdd83745214162aa5384009cfdf2b631ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 16 Dec 2019 15:53:04 +0100 Subject: [PATCH] Use file path instead of folder for direct workspace opening 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 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])