diff --git a/platform/commonUI/browse/src/BrowseController.js b/platform/commonUI/browse/src/BrowseController.js index 180fd8102e..c23e1ed192 100644 --- a/platform/commonUI/browse/src/BrowseController.js +++ b/platform/commonUI/browse/src/BrowseController.js @@ -52,7 +52,9 @@ define( unlisten; unlisten = $scope.$on('$locationChangeSuccess', function () { - $route.current = priorRoute; + if ($location.path().indexOf("/browse/") === 0) { + $route.current = priorRoute; + } unlisten(); }); // urlService.urlForLocation used to adjust current diff --git a/platform/commonUI/browse/src/BrowseObjectController.js b/platform/commonUI/browse/src/BrowseObjectController.js index c511898871..45de28b767 100644 --- a/platform/commonUI/browse/src/BrowseObjectController.js +++ b/platform/commonUI/browse/src/BrowseObjectController.js @@ -54,7 +54,9 @@ define( if (viewKey) { $location.search('view', viewKey); unlisten = $scope.$on('$locationChangeSuccess', function () { - $route.current = priorRoute; + if ($location.path().indexOf("/browse/") === 0) { + $route.current = priorRoute; + } unlisten(); }); }