Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex, nofollow" />
<title>Frappe Wiki</title>
</head>
<body class="bg-surface-white">
Expand Down
4 changes: 4 additions & 0 deletions wiki/www/wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
from frappe.utils import get_system_timezone

no_cache = 1
sitemap = 0

ROBOTS_DIRECTIVE = "noindex, nofollow"


def get_context():
frappe.local.response_headers.set("X-Robots-Tag", ROBOTS_DIRECTIVE)
csrf_token = frappe.sessions.get_csrf_token()
frappe.db.commit() # nosemgrep
context = frappe._dict()
Expand Down
Loading