Redirect /docs/index to /docs - #65
Conversation
Co-Authored-By: brandon <brandon@flightcontrol.dev>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: brandon <brandon@flightcontrol.dev>
Co-Authored-By: brandon <brandon@flightcontrol.dev>
|
Closing: the redirect breaks the docs root. On the Mintlify preview, |
Summary
index.mdxis served at both/docsand/docs/index, sohttps://www.ravion.com/docs/indexreturns 200 with the same content as/docs— a duplicate URL that the Lightsage site audit picked up as a crawled page absent from every sitemap (/docs/sitemap.xmlonly lists/docs).Adds a permanent redirect to the existing
redirectsarray so the duplicate collapses onto the canonical URL:{"source": "/index", "destination": "/", "permanent": true}No local build verifies this one (Mintlify builds on push);
docs.jsonparses.The other half of the audit finding is in ravionhq/flightcontrol#7054, which makes
/sitemap.xmla sitemap index pointing at/docs/sitemap.xmlso the ~330 docs URLs are discoverable without relying on theSitemap:lines inrobots.txt.Link to Devin session: https://app.devin.ai/sessions/6e3743a68c8e47128937c6e91f46f8bb
Requested by: @flybayer
Greptile Summary
Adds a permanent Mintlify redirect that canonicalizes
/docs/indexto/docs./indexas the docs-root-relative redirect source./as the docs-root-relative destination.Confidence Score: 5/5
The PR appears safe to merge because the redirect correctly maps the duplicate docs index route to the canonical documentation root.
The source and destination are interpreted relative to the Mintlify docs root, so
/docs/indexredirects to/docswithout changing unrelated routes.Important Files Changed
Reviews (1): Last reviewed commit: "Redirect docs index to root" | Re-trigger Greptile