Skip to content

Commit

Permalink
fix: added redirects to migrated content
Browse files Browse the repository at this point in the history
  • Loading branch information
mehreentahir16 committed May 16, 2023
1 parent 2d8fc0d commit 67d2492
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
18 changes: 18 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,24 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
isPermanent: true,
});

createRedirect({
fromPath: `/collect-data/infra`,
toPath: `https://docs.newrelic.com/docs/infrastructure/infrastructure-monitoring/get-started/identify-root-causes-guide/`,
isPermanent: true,
});

createRedirect({
fromPath: `/collect-data/network-performance-monitoring`,
toPath: `https://docs.newrelic.com/docs/network-performance-monitoring/get-started/network-performance-monitoring-guide/`,
isPermanent: true,
});

createRedirect({
fromPath: `/collect-data/browser/*`,
toPath: `https://docs.newrelic.com/docs/browser/new-relic-browser/lab/over-view/`,
isPermanent: true,
});

allMdx.edges.forEach(({ node }) => {
const {
frontmatter,
Expand Down
4 changes: 0 additions & 4 deletions src/data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
pages:
- title: Collect data from any source
url: https://docs.newrelic.com/docs/data-apis/custom-data/intro-custom-data
- title: Monitor your network devices
url: '/collect-data/network-performance-monitoring'
- title: Identify root cause issues in your infrastructure
url: '/collect-data/infra'
- title: Monitor your application
url: '/collect-data/monitor-your-application'
pages:
Expand Down

0 comments on commit 67d2492

Please sign in to comment.