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

@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

Copy link
Contributor Author

kylediaz commented Dec 13, 2025

Merge activity

  • Dec 13, 8:27 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 13, 8:31 PM UTC: @kylediaz merged this pull request with Graphite.

@kylediaz kylediaz changed the base branch from kylediaz/_doc_fix_doc_500_due_to_tabs_component to graphite-base/5990 December 13, 2025 20:29
@kylediaz kylediaz changed the base branch from graphite-base/5990 to main December 13, 2025 20:29
@kylediaz kylediaz merged commit 6f55191 into main Dec 13, 2025
67 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