Skip to content

Commit

Permalink
Fix wrong redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
ppcano committed Jan 15, 2021
1 parent be09c17 commit fe22a07
Showing 1 changed file with 10 additions and 31 deletions.
41 changes: 10 additions & 31 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,44 +353,21 @@ const createRedirects = ({ actions, pathPrefix }) => {
toPath: '/javascript-api/k6-metrics/counter',
isPermanent: true,
});
createRedirect({
fromPath:
'/javascript-api/k6-metrics/counter-k6-metrics/counter-add-value-tags',
toPath: '/javascript-api/k6-metrics/counter/counter-add-value-tags',
isPermanent: true,
});
createRedirect({
fromPath: '/javascript-api/k6-metrics/gauge-k6-metrics',
toPath: '/javascript-api/k6-metrics/gauge',
isPermanent: true,
});
createRedirect({
fromPath:
'/javascript-api/k6-metrics/gauge-k6-metrics/gauge-add-value-tags',
toPath: '/javascript-api/k6-metrics/gauge/gauge-add-value-tags',
isPermanent: true,
});
createRedirect({
fromPath: '/javascript-api/k6-metrics/rate-k6-metrics',
toPath: '/javascript-api/k6-metrics/rate',
isPermanent: true,
});
createRedirect({
fromPath: '/javascript-api/k6-metrics/rate-k6-metrics/rate-add-value-tags',
toPath: '/javascript-api/k6-metrics/rate/rate-add-value-tags',
isPermanent: true,
});
createRedirect({
fromPath: '/javascript-api/k6-metrics/trend-k6-metrics',
toPath: '/javascript-api/k6-metrics/trend',
isPermanent: true,
});
createRedirect({
fromPath:
'/javascript-api/k6-metrics/trend-k6-metrics/trend-add-value-tags',
toPath: '/javascript-api/k6-metrics/trend/trend-add-value-tags',
isPermanent: true,
});
createRedirect({
fromPath: '/using-k6/archives-for-bundling-sharing-a-test',
toPath: '/misc/archive-command',
Expand Down Expand Up @@ -465,27 +442,29 @@ const createRedirects = ({ actions, pathPrefix }) => {
});

createRedirect({
fromPath: '/javascript-api/k6-metrics/counter/counter-add-value-tags',
toPath:
fromPath:
'/javascript-api/k6-metrics/counter-k6-metrics/counter-add-value-tags',
toPath: '/javascript-api/k6-metrics/counter/counter-add-value-tags',
isPermanent: true,
});

createRedirect({
fromPath: '/javascript-api/k6-metrics/gauge/gauge-add-value-tags',
toPath: '/javascript-api/k6-metrics/gauge-k6-metrics/gauge-add-value-tags',
fromPath:
'/javascript-api/k6-metrics/gauge-k6-metrics/gauge-add-value-tags',
toPath: '/javascript-api/k6-metrics/gauge/gauge-add-value-tags',
isPermanent: true,
});

createRedirect({
fromPath: '/javascript-api/k6-metrics/rate/rate-add-value-tags',
toPath: '/javascript-api/k6-metrics/rate-k6-metrics/rate-add-value-tags',
fromPath: '/javascript-api/k6-metrics/rate-k6-metrics/rate-add-value-tags',
toPath: '/javascript-api/k6-metrics/rate/rate-add-value-tags',
isPermanent: true,
});

createRedirect({
fromPath: '/javascript-api/k6-metrics/trend/trend-add-value-tags',
toPath: '/javascript-api/k6-metrics/trend-k6-metrics/trend-add-value-tags',
fromPath:
'/javascript-api/k6-metrics/trend-k6-metrics/trend-add-value-tags',
toPath: '/javascript-api/k6-metrics/trend/trend-add-value-tags',
isPermanent: true,
});

Expand Down

0 comments on commit fe22a07

Please sign in to comment.