Redirect twenty-one more dead URLs that still receive backlinks

Merged
KT
1mo ago
+266-10

Summary

Twenty-one more Learn URLs answer 404 and are linked from other sites (checked on 2026-10-31). Each one now redirects, in one hop, to the page that covers its subject today, or to the closest parent section when no page does. Follow-up to #3142.

Dead URLTarget
/docs/observability-centralization-points/metrics-centralization-points/configuration/docs/netdata-parents/metrics-centralization-points/configuring-metrics-centralization-points
/docs/configuring/health/docs/alerts-&-notifications/alert-configuration-reference
/docs/netdata-agent/configuration/optimization/performance/docs/netdata-agent/configuration/performance-optimization
/docs/deployment-guides/parents-your-centralization-points/docs/netdata-parents
/docs/agent/collectors/plugins.d.plugin/graphite.plugin/docs/exporting-metrics/connectors/graphite
/docs/collecting-metrics/container-services/docker/docs/collecting-metrics/service-discovery/discoverer/docker
/docs/collecting-metrics/docker-discovery/docs/collecting-metrics/service-discovery/discoverer/docker
/docs/collecting-metrics/monitoring-hosts-and-containers/monitoring-proxmox/docs/collecting-metrics/collectors/containers-and-vms/proxmox-ve
/docs/collecting-metrics/monitoring-hosts/virtualization/proxmox-vesame
/docs/collecting-metrics/monitoring-virtual-machines-and-containers/proxmox-vesame
/docs/collecting-metrics/virtual-machines-and-containers/proxmoxsame
/docs/collecting-metrics/virtualization/proxmox-vesame
/docs/integrations/proxmoxsame
/docs/collecting-metrics/network-devices/snmp/docs/collecting-metrics/service-discovery/discoverer/snmp
/docs/collecting-metrics/monitoring-linux-systems/docs/collecting-metrics/collectors/operating-systems
/docs/configure/acl/docs/netdata-agent/configuration/securing-agents/web-server-reference
/docs/netdata-agent/configuration/configuration/docs/netdata-agent/configuration
/docs/netdata-agent/configuration/securing-netdata-agents/docs/netdata-agent/configuration/securing-agents
/docs/netdata-agent/netdata.conf/docs/netdata-agent/configuration/daemon
/docs/netdata-agent/observability-centrality-points/streaming/reference/docs/netdata-parents/parent-child-configuration-reference

The twenty-first URL is /docs/alerts-&-notifications/notifications/agent-dispatched-notifications/agent-notifications-reference: some sites publish Learn links with & escaped as &, and browsers request that literal path. Instead of one rule, every Learn section or page with & gets a rule for its escaped spelling (8 rules): the two sections with children, alerts-&-notifications and netdata-cloud/authentication-&-authorization, get a bare rule and a /* → /:splat rule; the leaf pages amd-cpu-&-gpu, disk-&-retention, versions-&-platforms and netdata-plans-&-billing get one exact rule each.

Rendered-link gate fix. scripts/verify-rendered-links.js HTML-decoded every netlify.toml source, a leftover from when it scraped hrefs with a regex (#2984 moved hrefs to parse5, which decodes entities itself). It read a & source as the real & route and failed the build. Netlify compares sources literally (on this PR's preview, percent-encoded and semicolon-only spellings matched only their own encoded requests), so the gate now reads sources as written. src/seo/renderedLinks.test.js gains a literal-source case and a fixture where a link to the real & route passes beside an & rule, and its pinned list of terminal wildcards gains the two new ones.

The graphite target is the closest subject (the linking TrueNAS PR is about exporting to Graphite); /docs/configure/acl goes to the page that documents the web server's access lists.

Validation

  • static.toml and the static section of netlify.toml are identical.
  • scripts/verify-redirect-graph.js against the production route list: 3,914 redirects verified against 4,062 routes, with no chains, no unrendered targets and no shadowed routes; master gives the same result with 3,886.
  • On the deploy preview, all 20 exact sources and the 8 escaped spellings, requested literally as a browser sends them, answer 301 to their target.
  • The rendered-link gate passes on a fixture that failed with the same rules before the fix, and still fails when a rule redirects the real & route.
  • vitest is not installed in this worktree, so renderedLinks.test.js was checked by running its new assertions with node; CI does not run vitest on pull requests.
  • Every source answers 404 and every target answers 200 directly on production.

After merge

  • Fetch each source with redirects followed and confirm one hop to a 200 page.

Summary by cubic

Redirects twenty-one Learn URLs that answer 404 but still receive confirmed backlinks from 14 external sites, each in one hop to the page that covers its subject today or to the closest parent section when none does. Also redirects every Learn path containing & from its HTML-escaped spelling (&), which some sites publish as literal paths.

Escaped ampersands

  • verify-rendered-links.js used to HTML-decode redirect sources, so a literal & source read as the real & route and broke the build; it now reads sources as written.
  • Sections with children, alerts-&-notifications and netdata-cloud/authentication-&-authorization, get a catch-all /* → /:splat rule alongside the bare rule; the four leaf pages get exact rules.

Validation

  • static.toml and the static section of netlify.toml are identical.
  • The redirect graph verifies 3,914 redirects against 4,062 routes with no chains, unrendered targets, or shadowed routes; every source answers 404 and every target 200 on production.

Summary by CodeRabbit

  • Bug Fixes
    • Added redirects for outdated documentation links, including pages covering Graphite, Docker discovery, Proxmox, SNMP, agent setup, alerts, and configuration.
    • Corrected links containing the literal & spelling, preserving additional paths for alerts and authorization pages.