When you change the path of a file in your docs folder, it also changes the URL path to that page. This may happen when restructuring your docs or changing the sidebar title. Catch broken links with our CLI. Install the CLI and run the command:
mint broken-links
The CLI identifies any relative links in your docs that don’t exist.

Redirects

Set up 301 redirects by adding the redirects field to your docs.json file.
"redirects": [
  {
    "source": "/source/path",
    "destination": "/destination/path"
  }
]
This permanently redirects /source/path to /destination/path so that you don’t lose any previous SEO for the original page. To match a wildcard path, use * after a parameter. In this example, /beta/:slug* matches /beta/introduction and redirects it to /v2/introduction.
"redirects": [
  {
    "source": "/beta/:slug*",
    "destination": "/v2/:slug*"
  }
]