From e32e894b80b99e5300984a45d444f3fb7bbe9781 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Thu, 25 Apr 2024 12:07:20 +0200 Subject: [PATCH] Do not display version info on doc pages --- app/views/documentation/v2.scala.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/documentation/v2.scala.html b/app/views/documentation/v2.scala.html index 6f0e82f..a41ba48 100644 --- a/app/views/documentation/v2.scala.html +++ b/app/views/documentation/v2.scala.html @@ -19,7 +19,9 @@
@content.map { html => - @versionInfo(pageFileName)(messages, context, reverseRouter) + @if(!req.headers.get(play.api.http.HeaderNames.USER_AGENT).exists(_.toLowerCase.startsWith("algolia crawler"))) { + @versionInfo(pageFileName)(messages, context, reverseRouter) + } @for(version <- context.version) {