Skip to content

Commit df155bf

Browse files
authored
Use file path instead of folder for direct workspace opening (#477)
Use file path instead of folder for direct workspace opening
2 parents 6eca8a9 + 61297bd commit df155bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Controller/WorkspaceController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function direct(string $path): DataResponse {
178178
if ($file === null) {
179179
$token = $this->directEditingManager->create($path . '/'. self::SUPPORTED_FILENAMES[0], Application::APP_NAME, 'textdocument');
180180
} else {
181-
$token = $this->directEditingManager->open($path, Application::APP_NAME);
181+
$token = $this->directEditingManager->open($path . '/'. $file->getName(), Application::APP_NAME);
182182
}
183183
return new DataResponse([
184184
'url' => $this->urlGenerator->linkToRouteAbsolute('files.DirectEditingView.edit', ['token' => $token])

0 commit comments

Comments
 (0)