Add oldParams when calling getQueryParams