Fixed params and query params

Filters out the queryparam part of the params, so urls like `foo.com/a/#!/tasks/2?sort=by_date` will work as expected. Before the fix, the `task_id` would be `2?sort=by_date` instead of `2`.