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

Commit c910a8b

Browse files
committed
Merge pull request #39 from jagare/nextPathname
Correct nextPath for redirect after login
2 parents e1130e1 + aff2ebb commit c910a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/pages/Login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class Login extends React.Component {
2828
const { history, store } = this.context
2929
const { location } = this.props
3030

31-
const nextPath = location.query.nextPathname || '/account'
31+
const nextPath = location.state.nextPathname || '/account'
3232
store.dispatch(actions.login(this.state, () => {
3333
// redirect to a secure page
3434
history.pushState({}, nextPath)

0 commit comments

Comments
 (0)