From 4f219e27756b294d8be34ddeec9c688f06808e50 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Thu, 7 Jul 2016 14:45:46 -0700 Subject: [PATCH] redirect user to dashboard if refresh if changing targets on the activity stream page and then clicking the toggle --- awx/ui/client/src/bread-crumb/bread-crumb.directive.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/awx/ui/client/src/bread-crumb/bread-crumb.directive.js b/awx/ui/client/src/bread-crumb/bread-crumb.directive.js index 790ab24674..cfc6630412 100644 --- a/awx/ui/client/src/bread-crumb/bread-crumb.directive.js +++ b/awx/ui/client/src/bread-crumb/bread-crumb.directive.js @@ -36,14 +36,10 @@ export default // The user is navigating away from the activity stream - take them back from whence they came else { // Pull the previous state out of local storage - var previousState = Store('previous_state'); if(originalRoute) { $state.go(originalRoute.name, originalRoute.fromParams); } - else if(previousState && !Empty(previousState.name)) { - $state.go(previousState.name, previousState.fromParams); - } else { // If for some reason something went wrong (like local storage was wiped, etc) take the // user back to the dashboard