Skip to content

Commit b2b718f

Browse files
committed
Add back the state
1 parent 5f45fcc commit b2b718f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/auth-flow/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ var Logout = React.createClass({
115115

116116
function requireAuth(nextState, replaceState) {
117117
if (!auth.loggedIn()) {
118-
replaceState(null, '/login');
118+
replaceState({ nextPathname: nextState.location.pathname }, '/login');
119119
}
120120
}
121121

0 commit comments

Comments
 (0)