Client: redirect /videos/:id to /videos/watch/:id
authorChocobozzz <florian.bigard@gmail.com>
Tue, 29 Nov 2016 20:57:19 +0000 (21:57 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Tue, 29 Nov 2016 20:57:19 +0000 (21:57 +0100)
client/src/app/videos/videos-routing.module.ts

index 766d29d2209fe386b4b9877781411a7079e85e89..4c951200c8a69484d310eb1fa6f84320129a1a7f 100644 (file)
@@ -29,6 +29,10 @@ const videosRoutes: Routes = [
           }
         }
       },
+      {
+        path: ':id',
+        redirectTo: 'watch/:id'
+      },
       {
         path: 'watch/:id',
         component: VideoWatchComponent