mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +00:00
127746: Add more detailed information messages on how to solve problems
(cherry picked from commit 170dc9a44c
)
This commit is contained in:
@@ -41,7 +41,8 @@ public class SEOHealthIndicator extends AbstractHealthIndicator {
|
|||||||
.withDetail("ssr", "OK");
|
.withDetail("ssr", "OK");
|
||||||
} else {
|
} else {
|
||||||
builder.down();
|
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) {
|
if (robotsTxtStatus == RobotsTxtStatus.MISSING) {
|
||||||
builder.withDetail("robots.txt", "Missing or inaccessible. Please see the DSpace Documentation on " +
|
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 " +
|
"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.");
|
"Documentation on Search Engine Optimization for how to pass X-Forwarded headers.");
|
||||||
}
|
}
|
||||||
|
builder.withDetail("ssr", ssrOk ? "OK" : "Server-side rendering (SSR) appears to be disabled. Most " +
|
||||||
builder.withDetail("ssr", ssrOk ? "OK" : "Server-side rendering might be disabled");
|
"search engines require enabling SSR for proper indexing. Please see the DSpace Documentation on" +
|
||||||
|
" Search Engine Optimization for more details.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user