The problem is that angular encodes url as default when you use special characters like [ ] { } I would like to know how I can prevent browser to encode url like below address:
http://www.hepsiburada.com/troy-bosch-chef/elektrikli-alet-el-aletleri-c-13003080?puan=3&filtre=[{"id":"activemerchants","values":["hepsiburada"]}]
Update1:
This is my router:
$stateProvider.state("products", {
url: "/:firstparams/:secondparams?filters&sort",
params: {secondparams: {squash: true, value: null}},
views: {
main: {templateUrl: "/view/productList.html", controller: "ProductListController", reloadOnSearch: false},
reloadOnSearch: false
},
reloadOnSearch: false,
onEnter: ("$rootScope", "$stateParams", "EVENTS", function ($rootScope, $stateParams, EVENTS)
{
$rootScope.$broadcast(EVENTS.ON_STATE_CHANGED, $stateParams);
})
});
});
params
property of the $http request to set those, and angular will carry to encode properly – Italo Ayres Feb 26 at 16:19