diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-02-18 12:31:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 12:31:24 +0100 |
commit | 280cc47a86d88edfdeaca82f5ccd41c7f7232b1d (patch) | |
tree | ee6f575712b22cf136e86a5e8ecc7bbc4b4ca513 | |
parent | ac007345e1b89b70a09c24add8d305f5582bccf6 (diff) | |
parent | 028ca0935c2a0be18bad5997167289be013d6a3d (diff) | |
download | nextcloud-server-280cc47a86d88edfdeaca82f5ccd41c7f7232b1d.tar.gz nextcloud-server-280cc47a86d88edfdeaca82f5ccd41c7f7232b1d.zip |
Merge pull request #31143 from nextcloud/fix/dont-redirect-file-index
Don't redirect when loading files index page
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index bfd931c0b2a..587f75f3f02 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -184,7 +184,7 @@ class ViewController extends Controller { * @throws NotFoundException */ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = false, $openfile = null) { - if ($fileid !== null) { + if ($fileid !== null && $dir === '') { try { return $this->redirectToFile($fileid); } catch (NotFoundException $e) { |