I want to pass a certain url with anchor to cakephp as parameter. my ajax is as follows:
var next_url = 'www.domain.com/search#!query=blah%20secondBlah×=5';
$.ajax({
    url : '/users/login/?next='+next_url,
    success: function(res) {
        // do something
    }
});     
In my controller, I run
debug($this->request->query['next']);
and it gets me only www.domain.com/search without the anchor part. 
What to do?
CakePHP 2.3
 
    