jazzhistorydatabase / jhdb-cms

Content management system for jazzhistorydatabase.com
3 stars 0 forks source link

Lowercase words in collection title break renderer #124

Closed LucasNVarella closed 3 years ago

LucasNVarella commented 4 years ago

If a collection has any lowercase words, the renderer is unable to fetch them from firebase. This may be happening because the /preview and /publish routes on the server receive the collection title in all lowercase. The renderer assumes the title would be all upper case, So it transforms the title into all uppercase and performs the query on Firebase.

For example, a collection named De Witte Jazz at the Club would arrive at the server route as de-witte-jazz-at-the-club and would be transformed to De Witte Jazz At The Club. The preview renderer would return a "No matching collections found" message to the client.

Related to #119 and #109 .