Skip to content

404 with suggested pages - #26411

Draft
craig-osterhout wants to merge 1 commit into
docker:mainfrom
craig-osterhout:404-semantic-search
Draft

craig-osterhout wants to merge 1 commit into
docker:mainfrom
craig-osterhout:404-semantic-search

Conversation

@craig-osterhout

@craig-osterhout craig-osterhout commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

Quick agent redesign of the 404 page that adds suggested pages based on the broken URL.

  • Suggestions come from the search_docker_docs tool on Gordon's MCP endpoint (https://ai-backend-service.docker.com/mcp). This replaces the earlier proof of concept in poc 404 redesign #25055, which scraped the sources out of Gordon's chat response.
  • The page turns the broken path into a query, such as Docker documentation: compose compose file 05 services, and shows up to 5 deduplicated results. If the call fails or returns nothing, it shows a fallback message that points to Gordon.
  • Links are rewritten to the current origin, so they also work locally.
  • The endpoint URL is a new docsSearchURL param in hugo.yaml. It always points at production because the stage backend has no /mcp route.
  • Removed the homepage link and image, since the navigation is on the page. Kept the "Ask Gordon" button and the "Create an issue" link, and the page text now suggests filing an issue when the link came from a Docker product.

Related issues or tickets

Supersedes #25055

Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
@netlify

netlify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit f9ddc87
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6ad92556e2a7b05658f71dc8
😎 Deploy Preview https://deploy-preview-26411--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added hugo Updates related to hugo area/config labels Oct 21, 2026
@craig-osterhout
craig-osterhout marked this pull request as draft October 21, 2026 20:54
@craig-osterhout

Copy link
Copy Markdown
Contributor Author

The suggested pages don't load in the deploy preview, so you'll see the "No suggestions found" message there. The search API only accepts browser requests from an exact allowlist of origins, and Netlify preview URLs aren't on it, so it returns a 403. docs.docker.com and localhost are on the list, so the feature should work in production. Reviewers can pull the branch and run it locally to try it.

Search quality has limits. When I tried a non-existent page with machine in the URL, the suggestions didn't include the deprecated page that mentions Docker Machine. The search matches the query against summaries of whole pages, and Docker Machine is only a short section on the general retired products page, so that page's summary probably doesn't surface it. A few words from a broken URL aren't a typical question for this tool, so it is what it is.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config hugo Updates related to hugo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant