@@ -13,7 +13,7 @@ exports.onCreatePage = ({ page, actions }) => {
13
13
const is_responsible_trading = / r e s p o n s i b l e / g. test ( page . path )
14
14
const is_contact_us = / c o n t a c t _ u s / g. test ( page . path )
15
15
const is_p2p = / r e s p o n s i b l e / g. test ( page . path )
16
- const is_story = / s t o r y / g. test ( page . path )
16
+ const who_we_are = / w h o - w e - a r e / g. test ( page . path )
17
17
const is_market = / m a r k e t s / g. test ( page . path )
18
18
const is_cfds = / c f d s / g. test ( page . path )
19
19
@@ -68,7 +68,7 @@ exports.onCreatePage = ({ page, actions }) => {
68
68
} )
69
69
}
70
70
71
- if ( is_story ) {
71
+ if ( who_we_are ) {
72
72
createRedirect ( {
73
73
fromPath : `/about/` ,
74
74
toPath : `/who-we-are/` ,
@@ -81,6 +81,30 @@ exports.onCreatePage = ({ page, actions }) => {
81
81
redirectInBrowser : true ,
82
82
isPermanent : true ,
83
83
} )
84
+ createRedirect ( {
85
+ fromPath : `/story/` ,
86
+ toPath : `/who-we-are/` ,
87
+ redirectInBrowser : true ,
88
+ isPermanent : true ,
89
+ } )
90
+ createRedirect ( {
91
+ fromPath : `/story` ,
92
+ toPath : `/who-we-are/` ,
93
+ redirectInBrowser : true ,
94
+ isPermanent : true ,
95
+ } )
96
+ createRedirect ( {
97
+ fromPath : `/leadership/` ,
98
+ toPath : `/who-we-are/` ,
99
+ redirectInBrowser : true ,
100
+ isPermanent : true ,
101
+ } )
102
+ createRedirect ( {
103
+ fromPath : `/leadership` ,
104
+ toPath : `/who-we-are/` ,
105
+ redirectInBrowser : true ,
106
+ isPermanent : true ,
107
+ } )
84
108
}
85
109
86
110
if ( is_market ) {
@@ -212,7 +236,7 @@ exports.onCreatePage = ({ page, actions }) => {
212
236
} )
213
237
}
214
238
215
- if ( is_story ) {
239
+ if ( who_we_are ) {
216
240
createRedirect ( {
217
241
fromPath : `/${ lang } /about/` ,
218
242
toPath : `/${ lang } /who-we-are/` ,
@@ -225,6 +249,30 @@ exports.onCreatePage = ({ page, actions }) => {
225
249
redirectInBrowser : true ,
226
250
isPermanent : true ,
227
251
} )
252
+ createRedirect ( {
253
+ fromPath : `/${ lang } /story/` ,
254
+ toPath : `/${ lang } /who-we-are/` ,
255
+ redirectInBrowser : true ,
256
+ isPermanent : true ,
257
+ } )
258
+ createRedirect ( {
259
+ fromPath : `/${ lang } /story` ,
260
+ toPath : `/${ lang } /who-we-are/` ,
261
+ redirectInBrowser : true ,
262
+ isPermanent : true ,
263
+ } )
264
+ createRedirect ( {
265
+ fromPath : `/${ lang } /leadership/` ,
266
+ toPath : `/${ lang } /who-we-are/` ,
267
+ redirectInBrowser : true ,
268
+ isPermanent : true ,
269
+ } )
270
+ createRedirect ( {
271
+ fromPath : `/${ lang } /leadership` ,
272
+ toPath : `/${ lang } /who-we-are/` ,
273
+ redirectInBrowser : true ,
274
+ isPermanent : true ,
275
+ } )
228
276
}
229
277
230
278
if ( is_market ) {
0 commit comments