AngularJS并阻止编码url

时间:2016-02-26 16:04:44

标签: javascript angularjs url encoding angular-ui-router

问题是当您使用[] {}之类的特殊字符时,会将网址编码为默认值 我想知道如何阻止浏览器对地址进行编码,如下地址:

http://www.hepsiburada.com/troy-bosch-chef/elektrikli-alet-el-aletleri-c-13003080?puan=3&filtre=[ {" ID":" activemerchants""值":[" hepsiburada"]}]

UPDATE1:

这是我的路由器:

    $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);
    })
});

});

0 个答案:

没有答案