We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcb82f6 + b165aa7 commit d316e5aCopy full SHA for d316e5a
apps/files/lib/Controller/ViewController.php
@@ -162,10 +162,10 @@ protected function getStorageInfo() {
162
* @return TemplateResponse|RedirectResponse
163
* @throws NotFoundException
164
*/
165
- public function showFile(string $fileid = null): Response {
+ public function showFile(string $fileid = null, int $openfile = 1): Response {
166
// This is the entry point from the `/f/{fileid}` URL which is hardcoded in the server.
167
try {
168
- return $this->redirectToFile($fileid, true);
+ return $this->redirectToFile($fileid, $openfile !== 0);
169
} catch (NotFoundException $e) {
170
return new RedirectResponse($this->urlGenerator->linkToRoute('files.view.index', ['fileNotFound' => true]));
171
}
0 commit comments