[Addressability] Re-Edit Bug

Fixed re-edit but by implementing
what Victor said in issue #25. Adding
check on /browse/ part of url and then
changing route works WTD 23.
This commit is contained in:
Shivam Dave 2015-06-26 11:52:03 -07:00
parent cd70ed6f94
commit 3de4473159
2 changed files with 6 additions and 2 deletions

View File

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

View File

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