Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added redirect from /social-impact to explore #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ module.exports = {
],
},
},
'gatsby-plugin-meta-redirect',
],
};
11 changes: 11 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
exports.createPages = ({ actions }) => {
const { createRedirect } = actions;

// Redirect to social impact collection
createRedirect({
fromPath: "/social-impact/",
toPath: "https://explore.ovio.org/collection/social-impact/projects",
isPermanent: true,
redirectInBrowser: true,
});
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build": "gatsby build",
"develop": "gatsby develop -H 0.0.0.0",
"format": "prettier --write src/**/*.{js,jsx}",
"dev": "GATSBY_ACTIVE_ENV=development npm run develop",
"dev": "GATSBY_ACTIVE_ENV=development yarn run develop",
"serve": "gatsby serve",
"deploy:prod": "GATSBY_ACTIVE_ENV=production yarn build && firebase deploy -P default",
"deploy:staging": "GATSBY_ACTIVE_ENV=development yarn build && firebase deploy -P staging",
Expand All @@ -29,6 +29,7 @@
"gatsby-plugin-google-analytics": "^2.1.14",
"gatsby-plugin-manifest": "^2.2.2",
"gatsby-plugin-material-ui": "^2.1.5",
"gatsby-plugin-meta-redirect": "^1.1.1",
"gatsby-plugin-react-helmet": "^3.1.1",
"lodash": "^4.17.15",
"node-fetch": "^2.6.0",
Expand Down
16 changes: 16 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4833,6 +4833,15 @@ [email protected], fs-exists-cached@^1.0.0:
resolved "https://registry.yarnpkg.com/fs-exists-cached/-/fs-exists-cached-1.0.0.tgz#cf25554ca050dc49ae6656b41de42258989dcbce"
integrity sha1-zyVVTKBQ3EmuZla0HeQiWJidy84=

fs-extra@^7.0.0:
version "7.0.1"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9"
integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==
dependencies:
graceful-fs "^4.1.2"
jsonfile "^4.0.0"
universalify "^0.1.0"

fs-extra@^8.1.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
Expand Down Expand Up @@ -5019,6 +5028,13 @@ gatsby-plugin-material-ui@^2.1.5:
clean-css "^4.2.1"
postcss "^7.0.17"

gatsby-plugin-meta-redirect@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/gatsby-plugin-meta-redirect/-/gatsby-plugin-meta-redirect-1.1.1.tgz#058e8e53edff38dc44d3bb6153109d01c910f863"
integrity sha512-Oc4qgU3SlDUM9qoxIMKO+re2bdMs3/a2KXrfL65gb8XMLsHylBbveWtXZRhgjd2QDL/49RX4S9SEykuadRju2w==
dependencies:
fs-extra "^7.0.0"

gatsby-plugin-page-creator@^2.3.6:
version "2.3.6"
resolved "https://registry.yarnpkg.com/gatsby-plugin-page-creator/-/gatsby-plugin-page-creator-2.3.6.tgz#050d1952e978922b65a31f38b5fd5f5c8dfa618d"
Expand Down