fix filtration template to keep query parameters