removes _pjax from queries in replace_in_query