Do not use indexOf to check if a query string has a param, instead use broadcast to get the actual value in the hash/url.