fixing pathname lookup for getBlockLocations endpoint