Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-02-18 14:31:24 +0300
committerGitHub <noreply@github.com>2022-02-18 14:31:24 +0300
commit280cc47a86d88edfdeaca82f5ccd41c7f7232b1d (patch)
treeee6f575712b22cf136e86a5e8ecc7bbc4b4ca513 /apps/files
parentac007345e1b89b70a09c24add8d305f5582bccf6 (diff)
parent028ca0935c2a0be18bad5997167289be013d6a3d (diff)
Merge pull request #31143 from nextcloud/fix/dont-redirect-file-index
Don't redirect when loading files index page
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/lib/Controller/ViewController.php2
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) {