diff --git a/src/client/app/common/views/filters/user.ts b/src/client/app/common/views/filters/user.ts index 167bb7758..c5bb39f67 100644 --- a/src/client/app/common/views/filters/user.ts +++ b/src/client/app/common/views/filters/user.ts @@ -10,6 +10,6 @@ Vue.filter('userName', user => { return getUserName(user); }); -Vue.filter('userPage', user => { - return '/@' + Vue.filter('acct')(user); +Vue.filter('userPage', (user, path?) => { + return '/@' + Vue.filter('acct')(user) + (path ? '/' + path : ''); }); diff --git a/src/client/app/desktop/script.ts b/src/client/app/desktop/script.ts index f57d42aa6..b3152e708 100644 --- a/src/client/app/desktop/script.ts +++ b/src/client/app/desktop/script.ts @@ -57,7 +57,7 @@ init(async (launch) => { { path: '/othello', component: MkOthello }, { path: '/othello/:game', component: MkOthello }, { path: '/@:user', component: MkUser }, - { path: '/@:user/:note', component: MkNote } + { path: '/notes/:note', component: MkNote } ] }); diff --git a/src/client/app/mobile/script.ts b/src/client/app/mobile/script.ts index 6265d0d45..1de489197 100644 --- a/src/client/app/mobile/script.ts +++ b/src/client/app/mobile/script.ts @@ -68,7 +68,7 @@ init((launch) => { { path: '/@:user', component: MkUser }, { path: '/@:user/followers', component: MkFollowers }, { path: '/@:user/following', component: MkFollowing }, - { path: '/@:user/:note', component: MkNote } + { path: '/notes/:note', component: MkNote } ] }); diff --git a/src/client/app/mobile/views/pages/user.vue b/src/client/app/mobile/views/pages/user.vue index f650f8aa8..d30fae7ba 100644 --- a/src/client/app/mobile/views/pages/user.vue +++ b/src/client/app/mobile/views/pages/user.vue @@ -30,11 +30,11 @@ {{ user.notesCount | number }} %i18n:mobile.tags.mk-user.notes% - + {{ user.followingCount | number }} %i18n:mobile.tags.mk-user.following% - + {{ user.followersCount | number }} %i18n:mobile.tags.mk-user.followers%