Skip to content

Conversation

@Blargian
Copy link
Member

@Blargian Blargian commented Dec 1, 2025

Summary

The issue was that Algolia returns URLs as relative paths (e.g., /operations/settings/settings#...) without the /docs prefix. When clicking on search results, the Docusaurus Link component automatically prepends the baseUrl (/docs/), so clicking works correctly. However, when pressing Enter, DocSearch uses the navigator.navigate() function which calls history.push() directly, and history.push() expects the full path including the baseUrl.

Added logic to the navigator to prepend /docs to relative URLs before passing them to history.push(). This ensures Enter key navigation works correctly, matching the behavior of clicking on search results.

Checklist

@Blargian Blargian requested a review from a team as a code owner December 1, 2025 14:48
@vercel
Copy link

vercel bot commented Dec 1, 2025

@Blargian is attempting to deploy a commit to the ClickHouse Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Dec 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
clickhouse-docs Ready Ready Preview Dec 1, 2025 5:34pm
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
clickhouse-docs-ru Ignored Ignored Preview Dec 1, 2025 5:34pm
clickhouse-docs-zh Ignored Ignored Preview Dec 1, 2025 5:34pm

@Blargian Blargian merged commit 1a61a2e into ClickHouse:main Dec 1, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants