Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Remove the single-result endpoints from the robots.txt (#4660)
Madison Swain-Bowden6394eab58d23
diff --git a/frontend/src/server-middleware/robots.js b/frontend/src/server-middleware/robots.jsindex fd38e9cc8..fd5be3960 100644--- a/frontend/src/server-middleware/robots.js+++ b/frontend/src/server-middleware/robots.js@@ -33,14 +33,10 @@ Crawl-delay: 10Disallow: /search/audio/Disallow: /search/image/Disallow: /search/-Disallow: /image/-Disallow: /audio/# Disallow the same for all translated routesDisallow: /*/search/audio/Disallow: /*/search/image/Disallow: /*/search/-Disallow: /*/image/-Disallow: /*/audio/${aiDisallowRules}`diff --git a/frontend/src/utils/og.ts b/frontend/src/utils/og.tsindex 075610a80..cca90e66c 100644--- a/frontend/src/utils/og.ts+++ b/frontend/src/utils/og.ts@@ -19,7 +19,7 @@ export const createDetailPageMeta = ({{hid: "robots",name: "robots",- content: "noindex",+ content: "all",},] as (MetaPropertyName | MetaPropertyProperty)[]if (title) {diff --git a/frontend/test/playwright/e2e/seo.spec.ts b/frontend/test/playwright/e2e/seo.spec.tsindex d83007266..d7b521757 100644--- a/frontend/test/playwright/e2e/seo.spec.ts+++ b/frontend/test/playwright/e2e/seo.spec.ts@@ -42,7 +42,7 @@ const pages = {"/v1/images/da5cb478-c093-4d62-b721-cda18797e3fb/thumb/"),ogTitle: "bird",- robots: "noindex",+ robots: "all",},audioDetail: {url: "/audio/7e063ee6-343f-48e4-a4a5-f436393730f6",@@ -51,7 +51,7 @@ const pages = {"/v1/audio/7e063ee6-343f-48e4-a4a5-f436393730f6/thumb/"),ogTitle: "I Love My Dog You Love your Cat",- robots: "noindex",+ robots: "all",},about: {url: "/about",