Skip to content

Conversation

@kylediaz
Copy link
Contributor

@kylediaz kylediaz commented Dec 8, 2025

https://docs.trychroma.com/integrations/frameworks/openLLMetry

This page is linked to on the sidebar, but it results in a 404 because the path is case sensitive. It expects https://docs.trychroma.com/integrations/frameworks/openllmetry
This adds middleware to make our URLs case insensitive.

Copy link
Contributor Author

kylediaz commented Dec 8, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Reviewer Checklist

Please leverage this checklist to ensure your code review is thorough before approving

Testing, Bugs, Errors, Logs, Documentation

  • Can you think of any use case in which the code does not behave as intended? Have they been tested?
  • Can you think of any inputs or external events that could break the code? Is user input validated and safe? Have they been tested?
  • If appropriate, are there adequate property based tests?
  • If appropriate, are there adequate unit tests?
  • Should any logging, debugging, tracing information be added or removed?
  • Are error messages user-friendly?
  • Have all documentation changes needed been made?
  • Have all non-obvious changes been commented?

System Compatibility

  • Are there any potential impacts on other parts of the system or backward compatibility?
  • Does this change intersect with any items on our roadmap, and if so, is there a plan for fitting them together?

Quality

  • Is this code of a unexpectedly high quality (Readability, Modularity, Intuitiveness)

@kylediaz kylediaz requested a review from itaismith December 8, 2025 23:27
@kylediaz kylediaz marked this pull request as ready for review December 8, 2025 23:27
@propel-code-bot
Copy link
Contributor

Normalize docs middleware routes to lowercase

Updates docs/docs.trychroma.com/middleware.ts to normalize incoming paths to lowercase and redirect when the original casing differs. This ensures the docs site serves pages even when sidebar links or user input use mixed-case paths before applying existing legacy path remaps.

Key Changes

• Lowercase request.nextUrl.pathname before further processing in middleware
• Add early redirect to the lowercase variant using NextResponse.redirect when casing differs

Affected Areas

docs/docs.trychroma.com/middleware.ts

This summary was automatically generated by @propel-code-bot

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