mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
Merge pull request #31143 from nextcloud/fix/dont-redirect-file-index
Don't redirect when loading files index page
This commit is contained in:
commit
280cc47a86
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue