Skip to content

Improve locale path transformation logic in sitemap configuration #332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ozzy35410
Copy link

Optimized the locale removal logic in the transform function by replacing the direct equality check (path == "/en") with .startsWith("/en/"). This ensures that any paths starting with /en/ are correctly transformed while maintaining support for the root /en case. The updated logic is more robust and prevents potential issues where /en/ appears in different positions within the path. This improves the reliability of the sitemap URL generation.

Copy link

vercel bot commented Mar 18, 2025

@ozzy35410 is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

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