@@ -14,9 +14,9 @@ import { addonRoutes } from '~/config';
14
14
*/
15
15
const routes = [
16
16
{
17
- path : '/natura2000/sites/c /:site_code' ,
17
+ path : '/natura2000/sites/natura2000 /:site_code' ,
18
18
realPathname : '/natura2000/sites/site' ,
19
- theme : 'n2k ' ,
19
+ theme : 'natura2000 ' ,
20
20
component : FakeLocation ,
21
21
renderComponent : App ,
22
22
routes : [
@@ -32,9 +32,72 @@ const routes = [
32
32
} ) ) ,
33
33
] ,
34
34
} ,
35
+ {
36
+ path : '/natura2000/sites/cdda/:site_code' ,
37
+ realPathname : '/natura2000/sites/site_cdda' ,
38
+ theme : 'natura2000' ,
39
+ component : FakeLocation ,
40
+ renderComponent : App ,
41
+ routes : [
42
+ // Add your routes here
43
+ // addon routes have a higher priority then default routes
44
+ ...defaultRoutes . map ( ( route ) => ( {
45
+ ...route ,
46
+ ...( route . path === '/**' ? { path : route . path + '/:site_code' } : { } ) ,
47
+ ...( route . path === '/**/edit' ? { path : '/**/:site_code/edit' } : { } ) ,
48
+ realPathname : '/natura2000/sites/site_cdda' ,
49
+ component : FakeLocation ,
50
+ renderComponent : route . component ,
51
+ } ) ) ,
52
+ ] ,
53
+ } ,
54
+ {
55
+ path : '/natura2000/habitats/h/:code_2000' ,
56
+ realPathname : '/natura2000/habitats/habitat' ,
57
+ theme : 'natura2000' ,
58
+ component : FakeLocation ,
59
+ renderComponent : App ,
60
+ routes : [
61
+ // Add your routes here
62
+ // addon routes have a higher priority then default routes
63
+ ...defaultRoutes . map ( ( route ) => ( {
64
+ ...route ,
65
+ ...( route . path === '/**' ? { path : route . path + '/:code_2000' } : { } ) ,
66
+ ...( route . path === '/**/edit' ? { path : '/**/:code_2000/edit' } : { } ) ,
67
+ realPathname : '/natura2000/habitats/habitat' ,
68
+ component : FakeLocation ,
69
+ renderComponent : route . component ,
70
+ } ) ) ,
71
+ ] ,
72
+ } ,
73
+ {
74
+ path : '/natura2000/species/s/:id_eunis' ,
75
+ realPathname : '/natura2000/species/species' ,
76
+ theme : 'natura2000' ,
77
+ component : FakeLocation ,
78
+ renderComponent : App ,
79
+ routes : [
80
+ // Add your routes here
81
+ // addon routes have a higher priority then default routes
82
+ ...defaultRoutes . map ( ( route ) => ( {
83
+ ...route ,
84
+ ...( route . path === '/**' ? { path : route . path + '/:id_eunis' } : { } ) ,
85
+ ...( route . path === '/**/edit' ? { path : '/**/:id_eunis/edit' } : { } ) ,
86
+ realPathname : '/natura2000/species/species' ,
87
+ component : FakeLocation ,
88
+ renderComponent : route . component ,
89
+ } ) ) ,
90
+ ] ,
91
+ } ,
92
+ /**
93
+ * sites/site
94
+ * sites/site_cdda
95
+ * habitats/habitat
96
+ * species/species
97
+ */
35
98
{
36
99
path : '/natura2000' ,
37
- theme : 'n2k ' ,
100
+ theme : 'natura2000 ' ,
38
101
component : App , // Change this if you want a different component
39
102
routes : [
40
103
// Add your routes here
0 commit comments