From e9d66248b510192374484e25654ea57cb2ad59fe Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 27 Dec 2021 13:24:46 -0600 Subject: [PATCH] Add compatibility redirects for Mastodon and Soapbox FE --- src/boot/routes.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/boot/routes.js b/src/boot/routes.js index 1bc1f9f7..8e41ad74 100644 --- a/src/boot/routes.js +++ b/src/boot/routes.js @@ -39,6 +39,11 @@ export default (store) => { : store.state.instance.redirectRootNoLogin) || '/main/all' } }, + + // Redirects from Mastodon, Soapbox FE, etc. to fix old bookmarks + { path: '/@:username/posts/:statusId', redirect: '/notice/:statusId' }, + { path: '/@:username/:statusId', redirect: '/notice/:statusId' }, + { name: 'public-external-timeline', path: '/main/all', component: PublicAndExternalTimeline }, { name: 'public-timeline', path: '/main/public', component: PublicTimeline }, { name: 'friends', path: '/main/friends', component: FriendsTimeline, beforeEnter: validateAuthenticatedRoute },