detect query params for routing to controller