Skip to content

Commit

Permalink
fix search index
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Nov 21, 2024
1 parent 481770d commit ee5d3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/search-index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function populateSearchIndex(searchIndex, localeLC) {
export async function searchIndexRoute(req, res) {
// Remember, this is always in lowercase because of a middleware
// that lowercases all incoming requests' pathname.
const locale = req.params.locale;
const locale = req.params.locale.toLowerCase();
if (locale !== "en-us" && !CONTENT_TRANSLATED_ROOT) {
res.status(500).send("CONTENT_TRANSLATE_ROOT not set\n");
return;
Expand Down

0 comments on commit ee5d3b6

Please sign in to comment.