Skip to content
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

Add lowercase option #2077

Closed
lorensr opened this issue Oct 14, 2022 · 3 comments
Closed

Add lowercase option #2077

lorensr opened this issue Oct 14, 2022 · 3 comments
Labels
enhancement Improved functionality

Comments

@lorensr
Copy link

lorensr commented Oct 14, 2022

Problem

I use Algolia for search, and it normalizes URLs by lowercasing (and it's not configurable). So an Algolia search result URL is lowercase, but Vercel is case-sensitive, so Vercel doesn't match the lowercase URL with the typedoc-generated SentenceCase file, and returns a 404.

Suggested Solution

Add a lowercase output option that:

  • generates lowercase files
  • changes links to lowercase
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Oct 15, 2022

This feels like an Algolia defect or configuration issue to me... Normalizing non-search fields isn't okay.

@lorensr
Copy link
Author

lorensr commented Oct 15, 2022

Thanks for pointing that out! Looks like I was mistaken—Algolia's normalization applies to search fields put in the index and query strings, not URLs. I'm not sure why there were lowercase URLs in my index, but after updating to a newer version of Crawler code and reindexing, I have SentenceCase types in my search result URLs.

Feel free to close, unless the lowercase option would be helpful for other use cases.

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Oct 16, 2022

👍 I do eventually want to make routing much more configurable, but that's effectively tracked under #1919, so will go ahead and close this.

@Gerrit0 Gerrit0 closed this as completed Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improved functionality
Projects
None yet
Development

No branches or pull requests

2 participants