From 6cee33a1fc8f76f5274e07d00adc7be0c3395bd2 Mon Sep 17 00:00:00 2001 From: perploug Date: Wed, 21 Aug 2013 21:11:54 +0200 Subject: [PATCH] $location.search will stop working with null --- .../src/common/services/contenteditinghelper.service.js | 3 ++- .../src/views/common/navigation.controller.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js b/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js index 38c573bdb3..3a40169710 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js @@ -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 diff --git a/src/Umbraco.Web.UI.Client/src/views/common/navigation.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/navigation.controller.js index c285532917..582f48fcb0 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/navigation.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/common/navigation.controller.js @@ -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(""); } });