diff --git a/platform/commonUI/edit/src/actions/CancelAction.js b/platform/commonUI/edit/src/actions/CancelAction.js index 2b117b5f6d..725f6ee6a7 100644 --- a/platform/commonUI/edit/src/actions/CancelAction.js +++ b/platform/commonUI/edit/src/actions/CancelAction.js @@ -50,11 +50,10 @@ define( // Discard the current root view (which will be the editing // UI, which will have been pushed atop the Browise UI.) function returnToBrowse() { - var urlBrowse = $location.path(urlService.urlForLocation( + $location.path($location.path(urlService.urlForLocation( "browse", domainObject - )); - $location.path(urlBrowse); + ))); } return {