todos-contra-el-fuego-web/imports/ui/components/Maps
vjrj 9feaca9d0b fix: fire ids leaked into URLs as ObjectID("...") on Mongo 7
Fire collections use idGeneration:'MONGO', so _id is a Mongo.ObjectID whose
toString() is ObjectID("<hex>"), not the bare hex. Interpolating _id into a
URL produced /fire/archive/ObjectID("c0..."), which no route matches -> the
fire-detail page 404'd. New hexId() helper returns the 24-char hex for an
ObjectID (and passes plain strings through); applied at the three string-context
sites: the map-marker click URL (MarkListeners), the active->archive redirect,
and the comments referenceId (Fires.js). Left falsePositives.insert untouched —
its check() expects a Meteor.Collection.ObjectID, so it takes the object.

Verified in browser: /fire/archive/<hex> and /fire/active/<hex> render the
detail page (map + comments), URL stays clean hex, no ObjectID( anywhere.
2026-07-17 18:31:59 +02:00
..
SubsUnion Unify don't calc boundaries of empty union 2018-11-18 15:45:14 +01:00
DefMapLayers.js Fix wrong grey tiles 2022-08-13 19:37:56 +02:00
FireCircleMark.js Minor changes in fires union 2018-12-23 13:31:41 +01:00
FireIconMark.js Added fires union (wip) 2018-11-18 11:48:03 +01:00
FireList.js Fire neighbour icon 2018-03-10 17:05:16 +01:00
FireListUnion.js Added fires union (wip) 2018-11-18 11:48:03 +01:00
FirePixel.js Added fires union (wip) 2018-11-18 11:48:03 +01:00
FirePolygonMark.js Added fires union (wip) 2018-11-18 11:48:03 +01:00
FirePopup.js Less clicks to show fire info 2018-02-20 09:11:07 +01:00
FullScreenMap.js Full screen on maps 2018-02-27 11:37:54 +01:00
Icons.js Added version to icons 2018-03-10 13:51:07 +01:00
MarkListeners.js fix: fire ids leaked into URLs as ObjectID("...") on Mongo 7 2026-07-17 18:31:59 +02:00