$routeParams cannot be used here? (if so the custom param logic could be removed)