From 9586d478ad17d39ebc28ea8e9d9262f574d99e66 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 5 Oct 2021 11:28:40 +0200 Subject: [PATCH] :paperclip: Add noindex tags on error report handler. --- backend/resources/error-report.tmpl | 1 + backend/src/app/loggers/database.clj | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/resources/error-report.tmpl b/backend/resources/error-report.tmpl index a04f0df6b0..452036997e 100644 --- a/backend/resources/error-report.tmpl +++ b/backend/resources/error-report.tmpl @@ -2,6 +2,7 @@ + penpot - error report {{id}} diff --git a/backend/src/app/loggers/database.clj b/backend/src/app/loggers/database.clj index 782f3ac2c3..2685661d82 100644 --- a/backend/src/app/loggers/database.clj +++ b/backend/src/app/loggers/database.clj @@ -119,7 +119,8 @@ (render-template))] (if result {:status 200 - :headers {"content-type" "text/html; charset=utf-8"} + :headers {"content-type" "text/html; charset=utf-8" + "x-robots-tag" "noindex"} :body result} {:status 404 :body "not found"})))))