Does $ location change? parameter separator

I will not open the following URL from my controller / installation / needs / temperatures? open = temperature, where the open = temperature parameter is there, to ask the page to open the corresponding pop-up window with the code as follows:

$scope.openPageUrl = function (url) {
    closePopover();
    console.log("Open page url "+url);
    $location.path(url);
};

<a ng-click="openPageUrl('/plant/needs/temperatures?open=temperatures')">Click to open</a>

Unfortunately, I have this url # / plant / needs / temperature% 3Fopen = the requested temperatures, with the question mark replaced with% 3F without opening the page.

Any idea to fix this?

+4
source share
1 answer

$location.path, , $location.path . , .

$location.url, ?. .path, .search .hash

$location.url(url);
+6

Source: https://habr.com/ru/post/1548522/


All Articles