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=45b24eb55e49ee43da1bc3740253476c670d7d2c;hpb=1a03bea0c42fa1064ce4770157b4fd2e3edd5565;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 45b24eb55..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,43 +12,39 @@ const accountsRoutes: Routes = [ { path: ':accountId', component: AccountsComponent, - canActivateChild: [ MetaGuard ], children: [ { path: '', redirectTo: 'video-channels', pathMatch: 'full' }, - { - path: 'videos', - component: AccountVideosComponent, - data: { - meta: { - title: 'Account videos' - }, - reuse: { - enabled: true, - key: 'account-videos-list' - } - } - }, { path: 'video-channels', component: AccountVideoChannelsComponent, data: { meta: { - title: 'Account video channels' + title: $localize`Account video channels` } } }, { - path: 'about', - component: AccountAboutComponent, + path: 'videos', + component: AccountVideosComponent, data: { meta: { - title: 'About account' + title: $localize`Account videos` + }, + reuse: { + enabled: true, + key: 'account-videos-list' } } + }, + + // Old URL redirection + { + path: 'search', + redirectTo: 'videos' } ] }