fix url params to pass through correctly