File tree Expand file tree Collapse file tree 3 files changed +57
-6
lines changed Expand file tree Collapse file tree 3 files changed +57
-6
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import { provideHighlightOptions } from 'ngx-highlightjs';
30
30
import { MonacoEditorModule , NgxMonacoEditorConfig } from 'ngx-monaco-editor-v2' ;
31
31
import { TitleCasePipe } from '@angular/common' ;
32
32
import { httpCacheInterceptor } from './http-cache.interceptor' ;
33
+ import { appLegacyRoutes } from './app.legacy-routes' ;
33
34
34
35
const scrollConfig : InMemoryScrollingOptions = {
35
36
scrollPositionRestoration : 'top' ,
@@ -65,14 +66,14 @@ const monacoConfig: NgxMonacoEditorConfig = {
65
66
export const appConfig : ApplicationConfig = {
66
67
providers : [
67
68
provideRouter (
68
- routes ,
69
+ appLegacyRoutes . concat ( routes ) ,
69
70
inMemoryScrollingFeature ,
70
71
withPreloading ( PreloadAllModules )
71
72
) ,
72
73
provideClientHydration (
73
74
// withNoHttpTransferCache Enabled = Faster HTML page download, requires API call on first load
74
75
// withNoHttpTransferCache Disabled = Slower HTML page download, no API call required
75
- //withNoHttpTransferCache()
76
+ // withNoHttpTransferCache()
76
77
) ,
77
78
provideHttpClient (
78
79
withInterceptors ( [ httpCacheInterceptor ] ) ,
Original file line number Diff line number Diff line change
1
+ /*---------------------------------------------------------------------------------------------
2
+ *
3
+ * Copyright (C) Codeplay Software Ltd.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ *
17
+ *--------------------------------------------------------------------------------------------*/
18
+
19
+ import { Routes } from '@angular/router' ;
20
+
21
+ export const appLegacyRoutes : Routes = [
22
+ {
23
+ path : 'learn' ,
24
+ redirectTo : 'getting-started'
25
+ } ,
26
+ {
27
+ path : 'releases' ,
28
+ redirectTo : 'ecosystem/implementations'
29
+ } ,
30
+ {
31
+ path : 'projects' ,
32
+ redirectTo : 'ecosystem/projects'
33
+ } ,
34
+ {
35
+ path : 'research' ,
36
+ redirectTo : 'ecosystem/research'
37
+ } ,
38
+ {
39
+ path : 'sessions' ,
40
+ redirectTo : 'calendar'
41
+ } ,
42
+ {
43
+ path : 'events' ,
44
+ redirectTo : 'calendar'
45
+ } ,
46
+ {
47
+ path : 'summer-sessions/2020/sessions' ,
48
+ redirectTo : 'calendar'
49
+ } ,
50
+ {
51
+ path : 'summer-sessions/2021/sessions' ,
52
+ redirectTo : 'calendar'
53
+ }
54
+ ] ;
Original file line number Diff line number Diff line change @@ -115,10 +115,6 @@ export const routes: Routes = [
115
115
path : 'contributors/:username' ,
116
116
component : ContributorComponent
117
117
} ,
118
- {
119
- path : 'learn' ,
120
- redirectTo : 'getting-started'
121
- } ,
122
118
{
123
119
path : 'e404' ,
124
120
component : Error404Component
You can’t perform that action at this time.
0 commit comments