Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
404s and empty pages on single-document views (when ids are not Mongo-generated?) #19
I get 404s and empty pages when going into the "detailed" single-document view (e.g.
Not sure why, but this seems to only happen on collections where ids were not autogenerated by MongoDB (those are barcode-like natural ids).
The issue is (probably) that Genghis implicitly wraps IDs in an ObjectId when requesting the object directly (GET, POST, DELETE):
This could probably be fixed by only wrapping it if the ID string is a 24 character hex string. Do me a favor and test this version, let me know if it works?