mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 14:42:46 +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:
parent
56262349a9
commit
36ec09a07b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user