mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:01:25 +08:00
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.
This commit is contained in:
@ -20,7 +20,7 @@ class RobotsTxtController < ApplicationController
|
|||||||
|
|
||||||
DISALLOWED_WITH_HEADER_PATHS ||= %w{
|
DISALLOWED_WITH_HEADER_PATHS ||= %w{
|
||||||
/badges
|
/badges
|
||||||
/u
|
/u/
|
||||||
/my
|
/my
|
||||||
/search
|
/search
|
||||||
/tag/*/l
|
/tag/*/l
|
||||||
|
Reference in New Issue
Block a user