$location.search will stop working with null

This commit is contained in:
perploug
2013-08-21 21:11:54 +02:00
parent d181a39343
commit 6cee33a1fc
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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("");
}
});