Skip to content

Conversation

Blargian
Copy link
Member

Summary

Google Search Console reports many links which aren't indexed or served on Google such as:

Adds a redirect to the correct path based on the first language code. e.g. https://clickhouse.com/docs/zh/en/sql-reference/functions/geo/polygons -> - https://clickhouse.com/docs/zh/sql-reference/functions/geo/polygons

Checklist

@Blargian Blargian requested a review from a team as a code owner September 30, 2025 13:52
Copy link

vercel bot commented Sep 30, 2025

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

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Sep 30, 2025

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

Project Deployment Preview Comments Updated (UTC)
clickhouse-docs Ready Ready Preview Oct 7, 2025 11:16am
clickhouse-docs-ru Error Error Oct 7, 2025 11:16am
clickhouse-docs-zh Ready Ready Preview Comment Oct 7, 2025 11:16am

@Blargian Blargian requested a review from Copilot October 6, 2025 11:15
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a Vercel redirect rule to handle malformed documentation URLs that contain two language codes instead of one. This addresses Google Search Console reporting issues with URLs like /docs/zh/jp/... or /docs/zh/en/... that should redirect to /docs/zh/....

  • Added a single redirect rule in vercel.json to capture URLs with double language codes and redirect to the correct path using only the first language code

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

"permanent": true
},
{
"source": "/docs/:lang1(ru|zh|jp)/:lang2(ru|zh|jp|en)/:path*",
Copy link
Preview

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The language code 'jp' should be 'ja' for Japanese. The correct ISO 639-1 language code for Japanese is 'ja', not 'jp'.

Copilot uses AI. Check for mistakes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true, but we're special.

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.

1 participant