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=15937a67b5482f91152945920f86d6f2aeb46588;hpb=370240824e2fb28b314255f6c23f5ea7d6b08625;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 15937a67b..d80df2293 100644 --- a/client/src/app/+accounts/accounts-routing.module.ts +++ b/client/src/app/+accounts/accounts-routing.module.ts @@ -1,11 +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 { AccountSearchComponent } from './account-search/account-search.component' +import { AccountVideosComponent } from './account-videos/account-videos.component' +import { AccountsComponent } from './accounts.component' const accountsRoutes: Routes = [ { @@ -15,7 +12,6 @@ const accountsRoutes: Routes = [ { path: ':accountId', component: AccountsComponent, - canActivateChild: [ MetaGuard ], children: [ { path: '', @@ -31,15 +27,6 @@ const accountsRoutes: Routes = [ } } }, - { - path: 'about', - component: AccountAboutComponent, - data: { - meta: { - title: $localize`About account` - } - } - }, { path: 'videos', component: AccountVideosComponent, @@ -53,14 +40,11 @@ const accountsRoutes: Routes = [ } } }, + + // Old URL redirection { path: 'search', - component: AccountSearchComponent, - data: { - meta: { - title: $localize`Search videos within account` - } - } + redirectTo: 'videos' } ] }