diff --git a/build/flaws/broken-links.ts b/build/flaws/broken-links.ts index 61ad773af1a7..30f53aff04a5 100644 --- a/build/flaws/broken-links.ts +++ b/build/flaws/broken-links.ts @@ -234,6 +234,7 @@ export function getBrokenLinksFlaws( } else if ( href.startsWith("https://developer.mozilla.org/") && !href.startsWith("https://developer.mozilla.org/en-US/curriculum/") && + !href.startsWith("https://developer.mozilla.org/en-US/observatory") && !href.startsWith("https://developer.mozilla.org/en-US/blog/") ) { // It might be a working 200 OK link but the link just shouldn't @@ -285,7 +286,7 @@ export function getBrokenLinksFlaws( } else if ( href.startsWith("/") && !href.startsWith("//") && - !/^\/(discord|en-US\/(blog|curriculum))(\/|$)/.test(href) + !/^\/(discord|en-US\/(blog|curriculum|observatory))(\/|$)/.test(href) ) { // Got to fake the domain to sensible extract the .search and .hash const absoluteURL = new URL(href, "http://www.example.com"); diff --git a/kumascript/macros/HTTPSidebar.ejs b/kumascript/macros/HTTPSidebar.ejs index eaa828b301f9..1cc39f7575cf 100644 --- a/kumascript/macros/HTTPSidebar.ejs +++ b/kumascript/macros/HTTPSidebar.ejs @@ -326,7 +326,7 @@ var text = mdn.localStringMap({
  • <%-web.smartLink(`/${locale}/docs/Web/HTTP/Headers/X-Frame-Options`, null, "X-Frame-Options")%>
  • <%-web.smartLink(`/${locale}/docs/Web/HTTP/Headers/X-XSS-Protection`, null, "X-XSS-Protection")%>
  • <%-web.smartLink(`/${locale}/docs/Web/Security/Practical_implementation_guides`)%>
  • -
  • HTTP Observatory
  • +
  • HTTP Observatory