Skip to content

Commit 280cc47

Browse files
authored
Merge pull request #31143 from nextcloud/fix/dont-redirect-file-index
Don't redirect when loading files index page
2 parents ac00734 + 028ca09 commit 280cc47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/lib/Controller/ViewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function showFile(string $fileid = null, int $openfile = 1): Response {
184184
* @throws NotFoundException
185185
*/
186186
public function index($dir = '', $view = '', $fileid = null, $fileNotFound = false, $openfile = null) {
187-
if ($fileid !== null) {
187+
if ($fileid !== null && $dir === '') {
188188
try {
189189
return $this->redirectToFile($fileid);
190190
} catch (NotFoundException $e) {

0 commit comments

Comments
 (0)