77 */
88
99import { Routes } from '@angular/router' ;
10+ import { externalRedirect } from './external-redirect' ;
1011import { CanActivateComponentSidenav } from './pages/component-sidenav/component-sidenav-can-load-guard' ;
1112
1213export const MATERIAL_DOCS_ROUTES : Routes = [
@@ -25,6 +26,31 @@ export const MATERIAL_DOCS_ROUTES: Routes = [
2526 // Since https://github.com/angular/components/pull/9574, the cdk-table guide became the overview
2627 // document for the cdk table. To avoid any dead / broken links, we redirect to the new location.
2728 { path : 'guide/cdk-table' , redirectTo : '/cdk/table/overview' } ,
29+ // Component harness, drag & drop docs have moved to angular.dev
30+ {
31+ path : 'cdk/testing' ,
32+ redirectTo : externalRedirect ( 'https://angular.dev/guide/testing/component-harnesses-overview' ) ,
33+ } ,
34+ {
35+ path : 'cdk/testing/api' ,
36+ redirectTo : externalRedirect ( 'https://angular.dev/api#angular_cdk_testing' ) ,
37+ } ,
38+ {
39+ path : 'cdk/testing/:tab' ,
40+ redirectTo : externalRedirect ( 'https://angular.dev/guide/testing/component-harnesses-overview' ) ,
41+ } ,
42+ {
43+ path : 'cdk/drag-drop' ,
44+ redirectTo : externalRedirect ( 'https://angular.dev/guide/drag-drop' ) ,
45+ } ,
46+ {
47+ path : 'cdk/drag-drop/api' ,
48+ redirectTo : externalRedirect ( 'https://angular.dev/api#angular_cdk_drag-drop' ) ,
49+ } ,
50+ {
51+ path : 'cdk/drag-drop/:tab' ,
52+ redirectTo : externalRedirect ( 'https://angular.dev/guide/drag-drop' ) ,
53+ } ,
2854 // In v19, the theming system became based on system variables and the mat.theme mixin.
2955 // The following guides were consolidated into the main theming guide, which redirects
3056 // users to v18 docs if they are looking for this content.
0 commit comments