Skip to content

Commit

Permalink
Crear redirecciones de URLs de la web antigua a la nueva. Fix #96
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagopuerta committed Aug 30, 2022
1 parent ce044db commit 6f57a7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ exports.onCreateNode = ({ node, getNode, actions }) => {

// Create pages from markdown files
exports.createPages = ({ graphql, actions }) => {
const { createPage } = actions;
const { createPage, createRedirect } = actions;
createRedirect({ fromPath: `/pages/asociacion.html`, toPath: `/asociacion/`, redirectInBrowser: true, isPermanent:true });
createRedirect({ fromPath: `/pages/ofertas-de-empleo.html`, toPath: `/empleo/`, redirectInBrowser: true, isPermanent:true });
return new Promise((resolve, reject) => {
resolve(
graphql(
Expand Down

0 comments on commit 6f57a7e

Please sign in to comment.