aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-19 08:15:30 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-19 08:15:30 +0200
commit54f79a28f6650ec5cb4fbd9e152eb1d6fb0aa0cb (patch)
tree3352eade07a333b63646f486eb771b223e2d3859 /core
parenta83c5e8b005209adf349636b2175fdb46bbc2d66 (diff)
downloadnextcloud-server-54f79a28f6650ec5cb4fbd9e152eb1d6fb0aa0cb.tar.gz
nextcloud-server-54f79a28f6650ec5cb4fbd9e152eb1d6fb0aa0cb.zip
When using permalinks don't error out if file id can't be found
Fixes #952 * Use only the index route (since it went to showFile anyways) * Fix tests * Use getUserFolder to force init of users mounts
Diffstat (limited to 'core')
-rw-r--r--core/routes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/routes.php b/core/routes.php
index b4868c14cf3..a148ee091e6 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -121,9 +121,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