diff options
Diffstat (limited to 'src/boot/routes.js')
| -rw-r--r-- | src/boot/routes.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/boot/routes.js b/src/boot/routes.js index f6a1eff8..9a249ee5 100644 --- a/src/boot/routes.js +++ b/src/boot/routes.js @@ -20,23 +20,23 @@ export default (store) => { redirect: _to => { return (store.state.users.currentUser ? store.state.instance.redirectRootLogin - : store.state.instance.redirectRootNoLogin) || '/p/main/all' + : store.state.instance.redirectRootNoLogin) || '/~/main/all' } }, - { name: 'public-external-timeline', path: '/p/main/all', component: PublicAndExternalTimeline }, - { name: 'public-timeline', path: '/p/main/public', component: PublicTimeline }, - { name: 'friends', path: '/p/main/friends', component: FriendsTimeline }, - { name: 'tag-timeline', path: '/p/tag/:tag', component: TagTimeline }, - { name: 'conversation', path: '/p/notice/:id', component: ConversationPage, meta: { dontScroll: true } }, + { name: 'public-external-timeline', path: '/~/main/all', component: PublicAndExternalTimeline }, + { name: 'public-timeline', path: '/~/main/public', component: PublicTimeline }, + { name: 'friends', path: '/~/main/friends', component: FriendsTimeline }, + { name: 'tag-timeline', path: '/~/tag/:tag', component: TagTimeline }, + { name: 'conversation', path: '/~/notice/:id', component: ConversationPage, meta: { dontScroll: true } }, { name: 'user-profile', path: '/:name', component: UserProfile }, { name: 'mentions', path: '/:username/mentions', component: Mentions }, { name: 'dms', path: '/:username/dms', component: DMs }, - { name: 'settings', path: '/p/settings', component: Settings }, - { name: 'registration', path: '/p/registration', component: Registration }, - { name: 'registration', path: '/p/registration/:token', component: Registration }, - { name: 'friend-requests', path: '/p/friend-requests', component: FollowRequests }, - { name: 'user-settings', path: '/p/user-settings', component: UserSettings }, - { name: 'oauth-callback', path: '/p/oauth-callback', component: OAuthCallback, props: (route) => ({ code: route.query.code }) }, - { name: 'user-search', path: '/p/user-search', component: UserSearch, props: (route) => ({ query: route.query.query }) } + { name: 'settings', path: '/~/settings', component: Settings }, + { name: 'registration', path: '/~/registration', component: Registration }, + { name: 'registration', path: '/~/registration/:token', component: Registration }, + { name: 'friend-requests', path: '/~/friend-requests', component: FollowRequests }, + { name: 'user-settings', path: '/~/user-settings', component: UserSettings }, + { name: 'oauth-callback', path: '/~/oauth-callback', component: OAuthCallback, props: (route) => ({ code: route.query.code }) }, + { name: 'user-search', path: '/~/user-search', component: UserSearch, props: (route) => ({ query: route.query.query }) } ] } |
