From 54f79a28f6650ec5cb4fbd9e152eb1d6fb0aa0cb Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 19 Aug 2016 08:15:30 +0200 Subject: 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 --- core/routes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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 -- cgit v1.2.3