X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Baccounts%2Faccounts-routing.module.ts;h=d80df2293e5e19b6b600b24a1e9ec576b28e94ea;hb=c3edc5b074aa4bb1861ed0a94d3713808e87170f;hp=55bce351a58692f9362ed2b98d80a432447d2e55;hpb=b91bc1d1f3591c35ab4426f6ab594b4bd9f1ef62;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 55bce351a..d80df2293 100644 --- a/client/src/app/+accounts/accounts-routing.module.ts +++ b/client/src/app/+accounts/accounts-routing.module.ts @@ -1,52 +1,50 @@ 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 = [ + { + path: 'peertube', + redirectTo: '/videos/local' + }, { 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' } ] }