From 1d59aff5a67e77cdcfb67c3caf0f8480afc29ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Sun, 11 May 2025 01:06:40 +0200 Subject: [PATCH] Always grant access to robots.txt --- code/Site/Site.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/Site/Site.js b/code/Site/Site.js index d638d1d2..09cdc67d 100644 --- a/code/Site/Site.js +++ b/code/Site/Site.js @@ -1145,9 +1145,10 @@ Site.prototype.enforceRobotsTxt = function() { // Override some URLs to prevent a site from becoming inaccessible even for the owner const overrides = [ this.href('edit'), - this.layout.href(), this.href('main.css'), this.href('main.js'), + this.href('robots.txt'), + this.layout.href(), this.members.href() ];