From 36ec09a07b4acd886c724d3b0c396572d4d67f7e Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Thu, 11 Mar 2021 15:36:49 +0100 Subject: [PATCH] FIX: Do not block `uploads` path in robots.txt (#12349) The `/u` rule also matches the `/uploads` path, which prevents Twitter from showing the site logo in its link previews. --- app/controllers/robots_txt_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/robots_txt_controller.rb b/app/controllers/robots_txt_controller.rb index 1f07d51ef1a..ad9b8e5e8c2 100644 --- a/app/controllers/robots_txt_controller.rb +++ b/app/controllers/robots_txt_controller.rb @@ -20,7 +20,7 @@ class RobotsTxtController < ApplicationController DISALLOWED_WITH_HEADER_PATHS ||= %w{ /badges - /u + /u/ /my /search /tag/*/l