aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/boot/routes.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/boot/routes.js b/src/boot/routes.js
index 2a08934f..839dda73 100644
--- a/src/boot/routes.js
+++ b/src/boot/routes.js
@@ -26,6 +26,29 @@ export default (store) => {
{ name: 'public-external-timeline', path: '/~/main/all', component: PublicAndExternalTimeline },
{ name: 'public-timeline', path: '/~/main/public', component: PublicTimeline },
{ name: 'friends', path: '/~/main/friends', component: FriendsTimeline },
+ // Beginning of temporary redirects
+ { path: '/main/:route',
+ redirect: to => {
+ const { params } = to
+
+ return { path: `/~/main/${params.route}` }
+ }
+ },
+ { path: '/tag/:tag',
+ redirect: to => {
+ const { params } = to
+
+ return { path: `/~/tag/${params.tag}` }
+ }
+ },
+ { path: '/notice/:id',
+ redirect: to => {
+ const { params } = to
+
+ return { path: `/~/notice/${params.id}` }
+ }
+ },
+ // End of temporary redirects
{ 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 },