[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:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user