mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 12:42:38 +00:00
fix: /sla dead-ended on www — it is a portal page, not a public one
/sla sat in PUBLIC_PATH_PREFIXES only because SLA notifications historically linked www…/sla. It is a fully authenticated page (ProtectedRoute + token fetches), and since ProtectedRoute stands down on the public host, www/sla waited forever on "Loading SLA metrics...". Removed from the public prefixes: the nav stays on portal (no bounce), old www…/sla notification links bounce to portal/sla where auth works, and SlaBreachEvaluationService.DashboardUrl now links the portal host directly for future notifications. /sla added to robots disallow. Web tsc + 603/603, backend build clean + SLA suite 38/38. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,7 +30,9 @@ namespace AutopilotMonitor.Functions.Services
|
||||
/// </summary>
|
||||
public class SlaBreachEvaluationService
|
||||
{
|
||||
private const string DashboardUrl = Constants.WebsiteBaseUrl + "/sla";
|
||||
// Portal host — /sla is an authenticated portal page; www…/sla links in
|
||||
// already-sent notifications reach it via the client-side host bounce.
|
||||
private const string DashboardUrl = Constants.PortalBaseUrl + "/sla";
|
||||
private const int MaxConflictRetries = 4;
|
||||
private const int MinAppInstallSampleSize = 5;
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ export default function robots(): MetadataRoute.Robots {
|
||||
// query-based since the static export).
|
||||
"/sessions",
|
||||
"/diagnosis",
|
||||
"/sla",
|
||||
"/admin/",
|
||||
"/settings",
|
||||
"/preview",
|
||||
|
||||
@@ -27,7 +27,13 @@ export const PUBLIC_PATH_PREFIXES = [
|
||||
"/privacy",
|
||||
"/terms",
|
||||
"/roadmap",
|
||||
"/sla",
|
||||
// NOTE: /sla is deliberately NOT here. It is a fully authenticated portal
|
||||
// page (ProtectedRoute + token fetches) that only LOOKED public because SLA
|
||||
// notifications historically linked www…/sla. As a public path it dead-ends:
|
||||
// ProtectedRoute stands down on the public host, so the page waits forever
|
||||
// for a sign-in (prod incident 2026-07-29). Off the list, old www…/sla links
|
||||
// bounce to portal/sla where auth works; new notifications link portal
|
||||
// directly (SlaBreachEvaluationService.DashboardUrl).
|
||||
"/robots.txt",
|
||||
"/sitemap.xml",
|
||||
"/IndexNow.txt",
|
||||
|
||||
Reference in New Issue
Block a user