From 8f649a37c9ae2e222316aaef634d2e81cb76c323 Mon Sep 17 00:00:00 2001 From: John Webb Date: Fri, 24 Jul 2015 14:13:40 -0400 Subject: [PATCH] Update for Angular 1.4, fixes linnovate/mean#1262 --- packages/core/users/public/services/meanUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/users/public/services/meanUser.js b/packages/core/users/public/services/meanUser.js index 0ff95e5966..ced8a81714 100644 --- a/packages/core/users/public/services/meanUser.js +++ b/packages/core/users/public/services/meanUser.js @@ -63,7 +63,7 @@ angular.module('mean.users').factory('MeanUser', [ '$rootScope', '$http', '$loca var encodedProfile = decodeURI(b64_to_utf8(response.token.split('.')[1])); var payload = JSON.parse(encodedProfile); this.user = payload; - var destination = $cookies.redirect; + var destination = $cookies.get('redirect'); if (this.user.roles.indexOf('admin') !== -1) this.isAdmin = true; $rootScope.$emit('loggedin'); if (destination) {