From 1a40c27894b2cf0ffc5618a730beaf60e79310f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Lindstr=C3=B6m?= Date: Mon, 23 Sep 2024 14:43:49 +0200 Subject: [PATCH] Redirect root context ref to systemContextUri --- rest/src/main/groovy/whelk/rest/api/Crud.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rest/src/main/groovy/whelk/rest/api/Crud.groovy b/rest/src/main/groovy/whelk/rest/api/Crud.groovy index d66b4eb1e4..f87c15d472 100644 --- a/rest/src/main/groovy/whelk/rest/api/Crud.groovy +++ b/rest/src/main/groovy/whelk/rest/api/Crud.groovy @@ -116,6 +116,8 @@ class Crud extends HttpServlet { if (request.pathInfo == "/") { measurement = metrics.measure('INDEX') displayInfo(response) + } else if (request.pathInfo == CONTEXT_PATH) { + sendRedirect(request, response, whelk.systemContextUri) } else if (siteSearch.isSearchResource(request.pathInfo)) { measurement = metrics.measure('FIND') handleQuery(request, response)