diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-05 17:46:33 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-05 18:25:29 +0100 |
commit | f3aaa9a95cc2b61f1f255472d7014d08faa66561 (patch) | |
tree | 95e70c8d0ed5b6f1c71c32a77cb7d6cf8478c9d4 /client/src/app/videos/videos-routing.module.ts | |
parent | d235f6b0d1054a2a3451dacade927caefce8f30c (diff) | |
download | PeerTube-f3aaa9a95cc2b61f1f255472d7014d08faa66561.tar.gz PeerTube-f3aaa9a95cc2b61f1f255472d7014d08faa66561.tar.zst PeerTube-f3aaa9a95cc2b61f1f255472d7014d08faa66561.zip |
Fix client search
Diffstat (limited to 'client/src/app/videos/videos-routing.module.ts')
-rw-r--r-- | client/src/app/videos/videos-routing.module.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts index 204851c81..6910421b7 100644 --- a/client/src/app/videos/videos-routing.module.ts +++ b/client/src/app/videos/videos-routing.module.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | 2 | import { RouterModule, Routes } from '@angular/router' |
3 | import { MetaGuard } from '@ngx-meta/core' | 3 | import { MetaGuard } from '@ngx-meta/core' |
4 | import { VideoSearchComponent } from './video-list' | ||
4 | import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' | 5 | import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' |
5 | import { VideoTrendingComponent } from './video-list/video-trending.component' | 6 | import { VideoTrendingComponent } from './video-list/video-trending.component' |
6 | import { VideosComponent } from './videos.component' | 7 | import { VideosComponent } from './videos.component' |
@@ -35,6 +36,15 @@ const videosRoutes: Routes = [ | |||
35 | } | 36 | } |
36 | }, | 37 | }, |
37 | { | 38 | { |
39 | path: 'search', | ||
40 | component: VideoSearchComponent, | ||
41 | data: { | ||
42 | meta: { | ||
43 | title: 'Search videos' | ||
44 | } | ||
45 | } | ||
46 | }, | ||
47 | { | ||
38 | path: 'upload', | 48 | path: 'upload', |
39 | loadChildren: 'app/videos/+video-edit#VideoAddModule', | 49 | loadChildren: 'app/videos/+video-edit#VideoAddModule', |
40 | data: { | 50 | data: { |
@@ -54,6 +64,7 @@ const videosRoutes: Routes = [ | |||
54 | }, | 64 | }, |
55 | { | 65 | { |
56 | path: ':uuid', | 66 | path: ':uuid', |
67 | pathMatch: 'full', | ||
57 | redirectTo: 'watch/:uuid' | 68 | redirectTo: 'watch/:uuid' |
58 | }, | 69 | }, |
59 | { | 70 | { |