X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Baccounts%2Faccounts-routing.module.ts;h=d80df2293e5e19b6b600b24a1e9ec576b28e94ea;hb=3e6193313b1c082b68177c056121b733f9e7d31a;hp=d2ca784b0378df441d0bbbadb4e753c3f34744d8;hpb=1e7eb457eda647b4fa22a0ae8e59c0a618f662f8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+accounts/accounts-routing.module.ts b/client/src/app/+accounts/accounts-routing.module.ts index d2ca784b0..d80df2293 100644 --- a/client/src/app/+accounts/accounts-routing.module.ts +++ b/client/src/app/+accounts/accounts-routing.module.ts @@ -1,10 +1,8 @@ import { NgModule } from '@angular/core' import { RouterModule, Routes } from '@angular/router' -import { MetaGuard } from '@ngx-meta/core' -import { AccountsComponent } from './accounts.component' -import { AccountVideosComponent } from './account-videos/account-videos.component' -import { AccountAboutComponent } from './account-about/account-about.component' import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component' +import { AccountVideosComponent } from './account-videos/account-videos.component' +import { AccountsComponent } from './accounts.component' const accountsRoutes: Routes = [ { @@ -14,26 +12,12 @@ const accountsRoutes: Routes = [ { path: ':accountId', component: AccountsComponent, - canActivateChild: [ MetaGuard ], children: [ { path: '', redirectTo: 'video-channels', pathMatch: 'full' }, - { - path: 'videos', - component: AccountVideosComponent, - data: { - meta: { - title: $localize`Account videos` - }, - reuse: { - enabled: true, - key: 'account-videos-list' - } - } - }, { path: 'video-channels', component: AccountVideoChannelsComponent, @@ -44,13 +28,23 @@ const accountsRoutes: Routes = [ } }, { - path: 'about', - component: AccountAboutComponent, + path: 'videos', + component: AccountVideosComponent, data: { meta: { - title: $localize`About account` + title: $localize`Account videos` + }, + reuse: { + enabled: true, + key: 'account-videos-list' } } + }, + + // Old URL redirection + { + path: 'search', + redirectTo: 'videos' } ] }