For is rolls, we look up rolls by subdomain as follows:
get roll/:subdomain
This is the same route as roll/:id, and it decides to look up by subdomain when the id passed in is not a valid BSON id.
If the subdomain is explore.shelby.tv or featured.shelby.tv, these requests get caught by the roll/explore and roll/featured routes and we don't load the proper roll information.
Proposed fix is to be able to look up rolls by subdomain as follows:
For is rolls, we look up rolls by subdomain as follows:
get roll/:subdomain
This is the same route as roll/:id, and it decides to look up by subdomain when the id passed in is not a valid BSON id.
If the subdomain is explore.shelby.tv or featured.shelby.tv, these requests get caught by the roll/explore and roll/featured routes and we don't load the proper roll information.
Proposed fix is to be able to look up rolls by subdomain as follows:
get /roll?subdomain=the_subdomain_i_want