Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use file path to obtain workspace direct editing links
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Dec 4, 2019
commit 561f24933a841fc1e07d0761e768f41713480974
2 changes: 1 addition & 1 deletion lib/Controller/WorkspaceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down