From 97f23af86d0be6f24bd21eb04a7bec3f4a525719 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Thu, 29 Aug 2019 14:57:28 +0900 Subject: Assign URL to each page of settings (#5349) * Assign URL to each page of settings * Use router-link * comma * Use active-class * Clean up * space * comma * Redirect if mobile * Redirect to /i/settings/profile * Clean up --- src/client/app/mobile/script.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/app/mobile/script.ts') diff --git a/src/client/app/mobile/script.ts b/src/client/app/mobile/script.ts index 4500ad8c91..26ef740811 100644 --- a/src/client/app/mobile/script.ts +++ b/src/client/app/mobile/script.ts @@ -140,6 +140,7 @@ init((launch, os) => { ]), { path: '/signup', name: 'signup', component: MkSignup }, { path: '/i/settings', name: 'settings', component: () => import('./views/pages/settings.vue').then(m => m.default) }, + { path: '/i/settings/:page', redirect: '/i/settings' }, { path: '/i/favorites', name: 'favorites', component: UI, props: route => ({ component: () => import('../common/views/pages/favorites.vue').then(m => m.default), platform: 'mobile' }) }, { path: '/i/pages', name: 'pages', component: UI, props: route => ({ component: () => import('../common/views/pages/pages.vue').then(m => m.default) }) }, { path: '/i/lists', name: 'user-lists', component: UI, props: route => ({ component: () => import('../common/views/pages/user-lists.vue').then(m => m.default) }) }, -- cgit v1.2.3-freya