import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
-import { MetaGuard } from '@ngx-meta/core'
-import { AccountSearchComponent } from './account-search/account-search.component'
import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component'
import { AccountVideosComponent } from './account-videos/account-videos.component'
import { AccountsComponent } from './accounts.component'
{
path: ':accountId',
component: AccountsComponent,
- canActivateChild: [ MetaGuard ],
children: [
{
path: '',
}
}
},
+
+ // Old URL redirection
{
path: 'search',
- component: AccountSearchComponent,
- data: {
- meta: {
- title: $localize`Search videos within account`
- }
- }
+ redirectTo: 'videos'
}
]
}