Skip to content

Commit

Permalink
Default tab changed to Profile for AuthorProfile and UserProfile pages
Browse files Browse the repository at this point in the history
It feels like the proper behavior to land on the first tab instead of the second tab for these two pages.
  • Loading branch information
legendword committed Mar 27, 2021
1 parent 636e771 commit ab33c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/router/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const routes = [
{ path: 'newAccount', component: () => import('pages/NewAccount.vue') },
{ path: 'emailVerification', component: () => import('pages/EmailVerification.vue') },
{ path: 'me', component: () => import('pages/Me.vue') },
{ path: 'user/:id', redirect: 'user/:id/collections' },
{ path: 'user/:id', redirect: 'user/:id/profile' },
{ path: 'user/:id/:tab', component: () => import('pages/UserProfile.vue'), meta: { customBarTitle: true } },
{ path: 'author/:id', redirect: 'author/:id/posts' },
{ path: 'author/:id', redirect: 'author/:id/profile' },
{ path: 'author/:id/:tab', component: () => import('pages/AuthorProfile.vue'), meta: { customBarTitle: true } },
{ path: 'search', redirect: 'search/posts' },
{ path: 'search/:tab', component: () => import('pages/Search.vue') },
Expand Down

0 comments on commit ab33c35

Please sign in to comment.