Repository navigation
Open
5 / 75 of 7 issues completedLabels
ai-triagedIssue received an initial assessment through AI-powered current code and architecture checks.ai:eng-questionAI triage raised an architecture/engineering question.ai:product-questionAI triage raised a question about product scope / offering.ai:writer-questionAI triage raised a question about authoring/writing workflow.
Description
Related issues
- Allow redirects across repos
- Problem to solve: Sometimes we move content from one repo to another and want to redirect to the new page. We should be able to create redirects from a page in one repo to a page in another repo.
- Issue: [Feature Request]: Allow redirects across repos #847
- Force creation of redirects
- Problem to solve: We need to avoid our links dying after the site goes live (and in the runup to release). To avoid links dying, we should make people create redirects to the next best location when a page is moved or deleted.
- Issue: [Feature Request]: Force creation of redirects #759
- Add error checking for removal of files/URLs by product
- Problem to solve: With the changes to the way we're handling versioning in the Docs V3, we'll have scenarios where URLs that are used in the product (for example, in error messages or logs or UIs) need to continue to exist (or have appropriate redirects) for as long as that product version is supported.
- Issue: [Feature Request]: Add error-checking for removal of files/URLs used by product #736
- Add support for product link checking
- Problem to solve: We must ensure that links from Kibana (in the product) to documentation are valid
- Issue: Add support for Kibana link checking #123,
- Link check to and from API docs
- A way to redirect from one page to another just for specific anchors
- Problem to solve: We need a way to redirect those specific anchors to the new subpage, without redirecting the entire parent page to the new subpage.
- Issue: [Feature Request]: A way to redirect from one page to another just for specific anchors #670
- Force use of docs-builder links Improve handling of absolute URL path references in docs #1181
RFC
In progress here.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 7 sub-issues
Metadata
Metadata
Assignees
Labels
ai-triagedIssue received an initial assessment through AI-powered current code and architecture checks.ai:eng-questionAI triage raised an architecture/engineering question.ai:product-questionAI triage raised a question about product scope / offering.ai:writer-questionAI triage raised a question about authoring/writing workflow.
Activity
cotti commentedon May 7, 2025
Product-specific redirect discussion has been moved to a new RFC here
[-][meta] Redirect strategy[/-][+][meta] Link checks & Redirects[/+]solutions/observability/apm/*files docs-content#1449KOTungseth commentedon May 14, 2026
@cotti where did we leave off with this?
cotti commentedon Jun 3, 2026
AI triage
Automated investigation against the current codebase. A human still needs to confirm before any code change.
Original concern
Umbrella tracker for the link-checking and redirects effort in docs-builder — covering cross-repo redirects, forced redirect creation on page moves/deletes, anchor-level redirects, and product/API link validation.
Findings
Of the seven sub-items this meta tracks, four have shipped and three remain open. Evidence in the current tree:
src/Elastic.Documentation.Links/CrossLinks/CrossLinkResolver.cs:L197-L240(FinalizeRedirect) resolves redirect targets that point at another repository's scheme, validating the target exists in that repo'slinks.json. Landed in PR #1227 (commit1fa284a1, 2025-06-02).src/Elastic.Documentation.Configuration/Builder/RedirectFile.cs:L91-L168parses per-anchor (anchors:) andmany:sub-rules;CrossLinkResolver.cs:L146-L195(ResolveRedirect) maps individual anchors (incl. the catch-all!). Same PR #1227. Authoring tests:tests/authoring/Inline/CrossLinkRedirectAnchors.fs,tests/authoring/Inline/CrossLinksRedirects.fs.src/authoring/Elastic.Documentation.Refactor/Tracking/LocalChangesService.cs:L23-L96(ValidateRedirects) walks git-deleted/renamed.mdfiles and errors if any lacks aredirects.ymlentry; exposed as thedocs-builder diffcommand insrc/tooling/docs-builder/Commands/DiffCommands.cs:L22-L41. Landed in PR #1340 ("Redirect health check", commit469c8258, 2025-06-16).src/Elastic.Documentation.Links/InboundLinks/LinkIndexLinkChecker.cs:L36-L111validates inbound cross-links by repository (CheckRepository(from,to)) and against a locally builtlinks.json(CheckWithLocalLinksJson); surfaced viasrc/tooling/docs-builder/Commands/InboundLinkCommands.cs:L29-L66(inbound-links validate). The issue was closed 2026-01-28 without an obviously-attributable merge commit, so I can't cite a single closing PR — the validation machinery is inLinkIndexService.src/services/Elastic.Documentation.Assembler/Deploying/DeployUpdateRedirectsService.cs:L19-L49pushes the assembled redirect map into the CloudFront KeyValueStore, so authored redirects actually serve.Verdict
Partially done
The core redirect and link-validation infrastructure listed in this tracker is built and tested: cross-repo + anchor redirects (PR #1227), the forced-redirect "diff" health check (PR #1340), inbound/product link validation (
LinkIndexService), and CloudFront redirect deployment. Three of the seven tracked sub-issues remain open (#736, elastic/docs-eng-team#997, #1181), the RFC referenced in the body is still in progress, and the thread's last question ("where did we leave off?") confirms the umbrella needs an owner to re-scope rather than a code fix. As a meta tracker this is the expected mixed state — the right next action is stakeholder coordination on what remains in scope, not a single PR.Proposal
Remaining workstreams, grouped by who needs to weigh in:
redirects.ymlinputs aren't validated ([Feature Request]: Validate redirects.yml inputs #1538).diffcheck andredirects.ymlparsing;redirects.ymlinput validation ([Feature Request]: Validate redirects.yml inputs #1538) is writer-facing.Suggested housekeeping (for a human to confirm, not done here): update the checklist in the issue body to mark #847/#759/#670/#123 done and link the PRs above, so the tracker reflects reality.
Related issues
Open members of this link/redirect cluster beyond the tracked sub-items: #1920 (xref evades deleted-page check), #1538 (validate
redirects.ymlinputs), #1609 (detect-removed-markdown check), #45 (canonical URLs). Tracked sub-items still open: #736, elastic/docs-eng-team#997, #1181 (open); #847, #759, #670, #123 (closed). A maintainer may want acluster:redirectslabel across these to plan a coherent close-out.Notes