-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgatsby-node.js
More file actions
32 lines (30 loc) · 824 Bytes
/
gatsby-node.js
File metadata and controls
32 lines (30 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* Implement Gatsby's Node APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/node-apis/
*/
// You can delete this file if you're not using it
/** Redirect donation page to external portal */
exports.createPages = ({ graphql, actions }) => {
const { createRedirect } = actions; //actions is collection of many actions - https://www.gatsbyjs.org/docs/actions
createRedirect({
fromPath: "/evictors-list",
toPath: "/evictors-list/citywide",
isPermanent: true
});
createRedirect({
fromPath: "/evictors-list/rtc",
toPath: "/evictors-list/citywide",
isPermanent: true
});
createRedirect({
fromPath: "/evictors-list/citywide",
toPath: "/list",
isPermanent: true
});
createRedirect({
fromPath: "/rights",
toPath: "/#rights",
isPermanent: true
});
};