Fix links that land readers somewhere other than their target - #937
Open
jacobmattern wants to merge 1 commit into
Open
Fix links that land readers somewhere other than their target#937jacobmattern wants to merge 1 commit into
jacobmattern wants to merge 1 commit into
Conversation
Verified against docs.vast.ai. Every fix here is a link that was broken or resolved to the wrong destination; links that already reach the right page through a redirect are left alone. Dead anchors, 19 of them. The fragment does not exist on the target page, so the reader lands at the top and has to hunt for the section. Mintlify keeps characters a conventional slugifier drops, so the working anchors include #jupyter-/-ide-access and #provisioning_script. Two legacy hashes (#1SmCz, #Yj5Wh) predate a page move and are replaced along with their paths, since the fix depends on the fragment surviving the redirect. data-movement.mdx linked ./#constraints, which Mintlify resolved to /guides/instances/storage#constraints, a different page. Three external links returned 404: vLLM engine_args moved under /configuration/, the dstack CLI reference has no index page, and the GLiNER2 collection is now gliner2-family. Three links landed on a generic page instead of the one they named: vast.ai/console/host/setup/ dropped readers on the console root, vast.ai/faq#RentalTypes lost its section, and vast.ai/docs/cli/reference/search-offers landed on the get-started guide. Redirects. Mintlify resolves redirects before pages, so /cli/templates and /guides/pricing were sending readers away from live navigation entries and making both pages unreachable; /guides/pricing is also the target of the landing page's Pricing card. Four redirect sources ending in .md could never match, because the .md view suffix is stripped before redirect matching, so /api/:slug* caught them and readers reached /api-reference/introduction.md instead of the endpoint page.
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sweep of every link, anchor and redirect in the repo, verified against the live site at https://docs.vast.ai. Only links that were broken or landed on the wrong page are changed here — a link that reaches the right page through a redirect is left alone, even where the path is stale.
Dead anchors (19)
The fragment does not exist on the target page, so the reader lands at the top and has to hunt for the section. Mintlify keeps characters a conventional slugifier drops, so the working anchors include
#jupyter-/-ide-access,#provisioning_scriptand#configuring-application-access-with-portal_config. Every replacement was taken from theidattributes on the rendered page, not computed.Two legacy hashes (
#1SmCz,#Yj5Wh) pre-date a page move; their paths are updated alongside the anchor, since the fix would otherwise depend on the fragment surviving a redirect.Link resolving to a different page
data-movement.mdxlinked./#constraints, which Mintlify renders ashref="/guides/instances/storage#constraints"— a different path, not the section further down the same page. Now#constraints.External links returning 404 (3)
docs.vllm.ai/en/latest/serving/engine_args.htmldocs.vllm.ai/en/latest/configuration/engine_args/dstack.ai/docs/reference/cli/(no index page)dstack.ai/docs/reference/cli/dstack/apply/huggingface.co/collections/fastino/gliner2huggingface.co/collections/fastino/gliner2-familyLinks landing on a generic page instead of the one they named (3)
vast.ai/console/host/setup/dropped readers on the console root →cloud.vast.ai/host/setup/vast.ai/faq#RentalTypeslost its section →/guides/reference/faq/rental-typesvast.ai/docs/cli/reference/search-offerslanded on the get-started guide →/cli/reference/search-offersRedirects
Mintlify resolves redirects before pages, so a redirect whose source matches a real page makes that page unreachable:
/cli/templatesand/guides/pricingwere sending readers away from live navigation entries./guides/pricingis also the target of the landing page's Pricing card. Both redirects removed so the pages they shadow can be served..md(/api/update-autogroup.mdand three siblings) could never match — the.mdview suffix is stripped before redirect matching, so/api/:slug*caught them and readers reached/api-reference/introduction.mdinstead of the endpoint page. Re-sourced without the extension.Verification
curl -Lto the page the reader actually lands on. A one-hop probe misreports trailing-slash normalisation, which is what produced the earlier false alarms.mint@4.2.862 broken-linksreports none. Note the pinned^4.2.234inpackage.jsoncannot resolvedocs.jsonredirects or OpenAPI-generated routes and reports ~145 false positives — tracked separately.Three outcomes only take effect once this deploys and cannot be confirmed before then:
/guides/pricingserving its page, and the four re-sourced/api/*redirects reaching their endpoint pages.Deliberately unchanged
47 links pointing at redirect sources, absolute
docs.vast.aiself-links, and similar stale-but-working paths. They all resolve to the correct page today, so they are left as they are.