diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-08-23 01:58:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-23 01:58:25 +0300 |
commit | e0ae67545e32506192d7fb93bdf849c06c13e1e9 (patch) | |
tree | 616b18748181d71b0da9de6ead32665cd0aa5808 /core/routes.php | |
parent | 6ef6d499bfa178537d090c86725e12685dac6686 (diff) | |
parent | cc9b36131cf971f51d638501ef4da73c9fbedf18 (diff) |
Merge pull request #956 from nextcloud/fix_952
When using permalinks don't error out if file id can't be found
Diffstat (limited to 'core/routes.php')
-rw-r--r-- | core/routes.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/routes.php b/core/routes.php index 3eec1e58c33..dde71245930 100644 --- a/core/routes.php +++ b/core/routes.php @@ -119,9 +119,9 @@ $this->create('core_ajax_update', '/core/ajax/update.php') ->actionInclude('core/ajax/update.php'); // File routes -$this->create('files.viewcontroller.showFile', '/f/{fileId}')->action(function($urlParams) { +$this->create('files.viewcontroller.showFile', '/f/{fileid}')->action(function($urlParams) { $app = new \OCA\Files\AppInfo\Application($urlParams); - $app->dispatch('ViewController', 'showFile'); + $app->dispatch('ViewController', 'index'); }); // Sharing routes |