Add compatibility redirects for Mastodon and Soapbox FE

This commit is contained in:
Alex Gleason 2021-12-27 13:24:46 -06:00
parent a20f1794d0
commit e9d66248b5
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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 },