I have a simple link, i want to pass the parameter data in "location". 

I i delete the redirection i can see in my console that the parameters (data POST) have been passed but if i redirect in my console i received nothing. 

```
// Search Reg
$('.search_reg').click(function(){
var test = "test";
            $.ajax({
            type: 'POST',
            url: 'catalogue_search.php',
            data: {'test': test},
            success: function (data) {
        var url = "catalogue_search.php";
            $(location).attr('href',url);
            }
           });
});

```