$location.search will stop working with null
This commit is contained in:
@@ -239,7 +239,8 @@ function contentEditingHelper($location, $routeParams, notificationsService, ser
|
||||
// /belle/#/content/edit/9876 (where 9876 is the new id)
|
||||
|
||||
//clear the query strings
|
||||
$location.search(null);
|
||||
$location.search("");
|
||||
|
||||
//change to new path
|
||||
$location.path("/" + $routeParams.section + "/" + $routeParams.tree + "/" + $routeParams.method + "/" + id);
|
||||
//don't add a browser history for this
|
||||
|
||||
@@ -85,7 +85,7 @@ function NavigationController($scope,$rootScope, $location, $log, navigationServ
|
||||
//add action to the history service
|
||||
historyService.add({ name: n.name, link: n.routePath, icon: n.icon });
|
||||
//not legacy, lets just set the route value and clear the query string if there is one.
|
||||
$location.path(n.routePath).search(null);
|
||||
$location.path(n.routePath).search("");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user