public function buildQueryInputs($currentField)
    {
        $request = $this->requestStack->getCurrentRequest();
        $fields = '';
        foreach ($request->query->all() as $field => $value) {
            // Exclude the current field and the PAGE parameter
            if($field !== $currentField && $field !== 'page'){
                $fields .= sprintf('<input type="hidden" name="%s" value="%s">', $field, $value);
            }
        }

        return $fields;
    }