127746: Add more detailed information messages on how to solve problems

(cherry picked from commit 170dc9a44c)
This commit is contained in:
Jens Vannerum
2025-04-01 17:58:47 +02:00
parent 7a876999f8
commit 64c5f82209

View File

@@ -41,7 +41,8 @@ public class SEOHealthIndicator extends AbstractHealthIndicator {
.withDetail("ssr", "OK");
} else {
builder.down();
builder.withDetail("sitemap", sitemapOk ? "OK" : "Missing or inaccessible");
builder.withDetail("sitemap", sitemapOk ? "OK" : "Sitemaps are missing or inaccessible. Please see the " +
"DSpace Documentation on Search Engine Optimization for how to enable Sitemaps.");
if (robotsTxtStatus == RobotsTxtStatus.MISSING) {
builder.withDetail("robots.txt", "Missing or inaccessible. Please see the DSpace Documentation on " +
@@ -51,8 +52,9 @@ public class SEOHealthIndicator extends AbstractHealthIndicator {
"that a proxy is failing to pass X-Forwarded headers to DSpace. Please see the DSpace " +
"Documentation on Search Engine Optimization for how to pass X-Forwarded headers.");
}
builder.withDetail("ssr", ssrOk ? "OK" : "Server-side rendering might be disabled");
builder.withDetail("ssr", ssrOk ? "OK" : "Server-side rendering (SSR) appears to be disabled. Most " +
"search engines require enabling SSR for proper indexing. Please see the DSpace Documentation on" +
" Search Engine Optimization for more details.");
}
}