(search) Redirect ^/site/$ to /site

This commit is contained in:
Viktor Lofgren 2025-01-22 13:35:18 +01:00
parent 98a340a0d1
commit 668f3b16ef

View File

@ -140,7 +140,8 @@ public class SearchSiteInfoService {
) throws SQLException, ExecutionException {
if (null == domainName || domainName.isBlank()) {
return null;
// If we don't get a domain name, we redirect to the /site endpoint
return new MapModelAndView("redirect.jte", Map.of("url", "/site"));
}
page = Objects.requireNonNullElse(page, 1);