aboutsummaryrefslogtreecommitdiff
path: root/src/boot/routes.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-08-22 21:56:55 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-08-22 21:56:55 +0000
commit88a3cf8705f925c31b5fad67d0fb709a51447156 (patch)
treea04619162e7fbbf270551536c28276a6d39d4ed9 /src/boot/routes.js
parent8e97a40c700797819bf92c61398daff230404228 (diff)
parentab4a75bdd92aba7973b6c32eb8ff11280552d6c6 (diff)
Merge branch 'from/develop/tusooa/user-profile-routes' into 'develop'
Stop generating /:nickname user profile routes See merge request pleroma/pleroma-fe!1589
Diffstat (limited to 'src/boot/routes.js')
-rw-r--r--src/boot/routes.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/boot/routes.js b/src/boot/routes.js
index 95e47199..91588af2 100644
--- a/src/boot/routes.js
+++ b/src/boot/routes.js
@@ -61,7 +61,7 @@ export default (store) => {
component: RemoteUserResolver,
beforeEnter: validateAuthenticatedRoute
},
- { name: 'external-user-profile', path: '/users/:id', component: UserProfile },
+ { name: 'external-user-profile', path: '/users/$:id', component: UserProfile },
{ name: 'interactions', path: '/users/:username/interactions', component: Interactions, beforeEnter: validateAuthenticatedRoute },
{ name: 'dms', path: '/users/:username/dms', component: DMs, beforeEnter: validateAuthenticatedRoute },
{ name: 'registration', path: '/registration', component: Registration },
@@ -75,7 +75,8 @@ export default (store) => {
{ name: 'search', path: '/search', component: Search, props: (route) => ({ query: route.query.query }) },
{ name: 'who-to-follow', path: '/who-to-follow', component: WhoToFollow, beforeEnter: validateAuthenticatedRoute },
{ name: 'about', path: '/about', component: About },
- { name: 'user-profile', path: '/:_(users)?/:name', component: UserProfile },
+ { name: 'user-profile', path: '/users/:name', component: UserProfile },
+ { name: 'legacy-user-profile', path: '/:name', component: UserProfile },
{ name: 'lists', path: '/lists', component: Lists },
{ name: 'lists-timeline', path: '/lists/:id', component: ListsTimeline },
{ name: 'lists-edit', path: '/lists/:id/edit', component: ListsEdit }