Procházet zdrojové kódy

Redirect to posts page

sbkwgh před 8 roky
rodič
revize
0e09d4e1af
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

@@ -38,7 +38,7 @@ const router = new VueRouter({
 		{ path: '/category/:category', component: Category },
 		{ path: '/thread/:slug/:id', component: Thread },
 		{ path: '/thread/new', component: ThreadNew },
-		{ path: '/user/:username', component: User, children: [
+		{ path: '/user/:username', redirect: '/user/:username/posts', component: User, children: [
 			{ path: 'posts', component: UserPosts },
 			{ path: 'threads', component: UserThreads }
 		] },