summaryrefslogtreecommitdiffstats
path: root/apps/files/src/router/router.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/router/router.ts')
-rw-r--r--apps/files/src/router/router.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files/src/router/router.ts b/apps/files/src/router/router.ts
index 5bb8f90770b..4fec332cddf 100644
--- a/apps/files/src/router/router.ts
+++ b/apps/files/src/router/router.ts
@@ -19,9 +19,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+import type { RawLocation, Route } from 'vue-router'
+
import { generateUrl } from '@nextcloud/router'
import queryString from 'query-string'
-import Router, { RawLocation, Route } from 'vue-router'
+import Router from 'vue-router'
import Vue from 'vue'
import { ErrorHandler } from 'vue-router/types/router'
@@ -46,10 +48,10 @@ const router = new Router({
{
path: '/',
// Pretending we're using the default view
- redirect: { name: 'filelist' },
+ redirect: { name: 'filelist', params: { view: 'files' } },
},
{
- path: '/:view/:fileid?',
+ path: '/:view/:fileid(\\d+)?',
name: 'filelist',
props: true,
},