diff --git a/libs/fundamental-redirects/index.js b/libs/fundamental-redirects/index.js index cf98d4adfb98..b0f8a464cfa0 100644 --- a/libs/fundamental-redirects/index.js +++ b/libs/fundamental-redirects/index.js @@ -1162,7 +1162,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( - /^(?AJAX|CSS|DOM|DragDrop|HTML|JavaScript|SVG|Tools|Using_files_from_web_applications|Web|XMLHttpRequest|Security)(?\/.+?)?\/?$/i, + /^(?AJAX|CSS|DOM|DragDrop|ECMAScript_DontEnum_attribute|HTML|JavaScript|JavaScript_typed_arrays|Media_formats_supported_by_the_audio_and_video_elements|SVG|Tools|Using_audio_and_video_in_Firefox|Using_files_from_web_applications|Web|XMLHttpRequest|Security)(?\/.+?)?\/?$/i, ({ prefix, subPath = "" }) => `/docs/${prefix}${subPath}`, { permanent: true } ), diff --git a/testing/tests/redirects.test.ts b/testing/tests/redirects.test.ts index 51ea8521458f..420de12e9871 100644 --- a/testing/tests/redirects.test.ts +++ b/testing/tests/redirects.test.ts @@ -1222,15 +1222,27 @@ const MISC_REDIRECT_URLS = [].concat( "/en-US/DragDrop/Drag_and_Drop/", "/en-US/docs/DragDrop/Drag_and_Drop" ), + url_test( + "/en-US/ECMAScript_DontEnum_attribute", + "/en-US/docs/ECMAScript_DontEnum_attribute" + ), url_test("/en-US/HTML", "/en-US/docs/HTML"), url_test("/en-US/HTML/", "/en-US/docs/HTML"), url_test("/en-US/HTML/Canvas/", "/en-US/docs/HTML/Canvas"), url_test("/en-US/JavaScript", "/en-US/docs/JavaScript"), url_test("/en-US/JavaScript/", "/en-US/docs/JavaScript"), + url_test( + "/en-US/JavaScript_typed_arrays/ArrayBuffer", + "/en-US/docs/JavaScript_typed_arrays/ArrayBuffer" + ), url_test( "/en-US/JavaScript/Reference/About/", "/en-US/docs/JavaScript/Reference/About" ), + url_test( + "/en-US/Media_formats_supported_by_the_audio_and_video_elements", + "/en-US/docs/Media_formats_supported_by_the_audio_and_video_elements" + ), url_test("/en-US/SVG", "/en-US/docs/SVG"), url_test("/en-US/SVG/", "/en-US/docs/SVG"), url_test("/en-US/SVG/Element/font/", "/en-US/docs/SVG/Element/font"), @@ -1240,6 +1252,10 @@ const MISC_REDIRECT_URLS = [].concat( "/en-US/Tools/Memory/Treemap_view/", "/en-US/docs/Tools/Memory/Treemap_view" ), + url_test( + "/en-US/Using_audio_and_video_in_Firefox", + "/en-US/docs/Using_audio_and_video_in_Firefox" + ), url_test( "/en-US/Using_files_from_web_applications", "/en-US/docs/Using_files_from_web_applications"