0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-16 01:31:22 -05:00

📎 Add noindex tags on error report handler.

This commit is contained in:
Andrey Antukh 2021-10-05 11:28:40 +02:00 committed by Andrés Moya
parent 77cf4a5332
commit 9586d478ad
2 changed files with 3 additions and 1 deletions

View file

@ -2,6 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="robots" content="noindex,nofollow">
<meta http-equiv="x-ua-compatible" content="ie=edge" /> <meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>penpot - error report {{id}}</title> <title>penpot - error report {{id}}</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono">

View file

@ -119,7 +119,8 @@
(render-template))] (render-template))]
(if result (if result
{:status 200 {:status 200
:headers {"content-type" "text/html; charset=utf-8"} :headers {"content-type" "text/html; charset=utf-8"
"x-robots-tag" "noindex"}
:body result} :body result}
{:status 404 {:status 404
:body "not found"}))))) :body "not found"})))))