mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-22 20:48:59 +00:00
(search) Redirect ^/site/$ to /site
This commit is contained in:
parent
98a340a0d1
commit
668f3b16ef
@ -140,7 +140,8 @@ public class SearchSiteInfoService {
|
|||||||
) throws SQLException, ExecutionException {
|
) throws SQLException, ExecutionException {
|
||||||
|
|
||||||
if (null == domainName || domainName.isBlank()) {
|
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);
|
page = Objects.requireNonNullElse(page, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user