Skip to content

Commit 6394eab

Browse files
Remove the single-result endpoints from the robots.txt (#4660)
* Remove the single-result endpoints from the robots.txt * Set robots meta content to `all` * Fix playwright e2e tests
1 parent c68dcd6 commit 6394eab

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

frontend/src/server-middleware/robots.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,10 @@ Crawl-delay: 10
3333
Disallow: /search/audio/
3434
Disallow: /search/image/
3535
Disallow: /search/
36-
Disallow: /image/
37-
Disallow: /audio/
3836
# Disallow the same for all translated routes
3937
Disallow: /*/search/audio/
4038
Disallow: /*/search/image/
4139
Disallow: /*/search/
42-
Disallow: /*/image/
43-
Disallow: /*/audio/
4440
4541
${aiDisallowRules}
4642
`

frontend/src/utils/og.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const createDetailPageMeta = ({
1919
{
2020
hid: "robots",
2121
name: "robots",
22-
content: "noindex",
22+
content: "all",
2323
},
2424
] as (MetaPropertyName | MetaPropertyProperty)[]
2525
if (title) {

frontend/test/playwright/e2e/seo.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const pages = {
4242
"/v1/images/da5cb478-c093-4d62-b721-cda18797e3fb/thumb/"
4343
),
4444
ogTitle: "bird",
45-
robots: "noindex",
45+
robots: "all",
4646
},
4747
audioDetail: {
4848
url: "/audio/7e063ee6-343f-48e4-a4a5-f436393730f6",
@@ -51,7 +51,7 @@ const pages = {
5151
"/v1/audio/7e063ee6-343f-48e4-a4a5-f436393730f6/thumb/"
5252
),
5353
ogTitle: "I Love My Dog You Love your Cat",
54-
robots: "noindex",
54+
robots: "all",
5555
},
5656
about: {
5757
url: "/about",

0 commit comments

Comments
 (0)