Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit bbe1345

Browse files
author
vikasrohit
committed
AS#100297043256582, Move all login to link of Members to accounts.topcoder.com
-- Reverted changes for window.location, because it caused infinite redirect
1 parent f221d62 commit bbe1345

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/topcoder.module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ import { getCurrentUser, loadUser } from './services/userv3.service.js'
5555
logger.debug('successful login with token ' + JSON.stringify(token))
5656
$rootScope.$broadcast(CONSTANTS.EVENT_USER_LOGGED_IN)
5757
logger.debug('Going to state: ' + toState.name)
58-
// $state.go(toState.name, toParams, {notify: false})
59-
$window.location = $state.href(toState.name, toParams, {absolute: true})
58+
$state.go(toState.name, toParams, {notify: false})
59+
$rootScope.$apply()
6060
}, function() {
6161
logger.debug('State requires authentication, and user is not logged in, redirecting')
6262
// setup redirect for post login

0 commit comments

Comments
 (0)