Skip to content

Commit

Permalink
Crear redirecciones de URLs de la web antigua a la nueva. Fix python-…
Browse files Browse the repository at this point in the history
…spain#96

Instala gatsby-redirect-from.
  • Loading branch information
santiagopuerta committed Sep 30, 2022
1 parent ea36b84 commit aa89840
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 24,192 deletions.
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
Loading

0 comments on commit aa89840

Please sign in to comment.