Skip to content

Commit

Permalink
add fundamental redirects for /en-US/Security/CSP
Browse files Browse the repository at this point in the history
Fixes mdn#3199
  • Loading branch information
peterbe committed Mar 11, 2021
1 parent 6de6377 commit fec75eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/fundamental-redirects/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ const MISC_REDIRECT_PATTERNS = [
// redirects often take over from there, so let's only insert "/docs/"
// and let any other redirect rules work from that point onwards.
localeRedirect(
/^(?<prefix>AJAX|CSS|DOM|DragDrop|HTML|JavaScript|SVG|Tools|Using_files_from_web_applications|Web|XMLHttpRequest)(?<subPath>\/.+?)?\/?$/i,
/^(?<prefix>AJAX|CSS|DOM|DragDrop|HTML|JavaScript|SVG|Tools|Using_files_from_web_applications|Web|XMLHttpRequest|CSP)(?<subPath>\/.+?)?\/?$/i,
({ prefix, subPath = "" }) => `/docs/${prefix}${subPath}`,
{ permanent: true }
),
Expand Down

0 comments on commit fec75eb

Please sign in to comment.