From 73a209153bf1f090707b0ace0a5b4e74209c48f9 Mon Sep 17 00:00:00 2001 From: vikasrohit Date: Mon, 20 Jul 2015 16:14:15 +0530 Subject: [PATCH] SUP-1050, Hitting back button after any my-dashboard link breaks my-dashboard It was happening because getHandle method is not being called on back button which was happening because of page being marked as cached. For now, workaround it by marking the page non cached because down v2 of dashboard will be a separate app which would not be depdendent on tc-site. --- .../app/my-dashboard/js/controllers/my-dashboard-controller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/app/my-dashboard/js/controllers/my-dashboard-controller.js b/src/js/app/my-dashboard/js/controllers/my-dashboard-controller.js index bb02f2d9..32ca153b 100644 --- a/src/js/app/my-dashboard/js/controllers/my-dashboard-controller.js +++ b/src/js/app/my-dashboard/js/controllers/my-dashboard-controller.js @@ -35,6 +35,8 @@ // activate controller if (AuthService.isLoggedIn === true) { + // SUP-1050, workaround to not cache the page + angular.element('#cache-persist').val(null); activate(); } else { // if user is not logged in, return (to avoid extra ajax calls) return false;