Skip to content

Commit

Permalink
feat(fundamental-redirects): redirect archived media
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed May 5, 2023
1 parent e301f2a commit 5f4f280
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions libs/fundamental-redirects/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,20 @@ const MISC_REDIRECT_PATTERNS = [
({ prefix, subPath = "" }) => `/docs/${prefix}${subPath}`,
{ permanent: true }
),
// Content archived as part of the GCP migration.
redirect(/^diagrams\/?$/i, "https://mdn.dev/archives/media/diagrams/", {
permanent: false,
}),
redirect(
/^presentations\/?$/i,
"https://mdn.dev/archives/media/presentations/",
{
permanent: false,
}
),
redirect(/^samples\/?$/i, "https://mdn.dev/archives/media/samples/", {
permanent: false,
}),
];

const REDIRECT_PATTERNS = [].concat(
Expand Down

0 comments on commit 5f4f280

Please sign in to comment.