Skip to content

Commit

Permalink
Redirect to pendant UI after a successful login
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Dec 5, 2017
1 parent 80c01eb commit 8b8277c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ socket.on('connect', function() {

socket.on('error', function() {
socket.destroy();
window.location = '/'; // Redirect to webroot

// Redirect to login page
window.location = '/?continue=' + encodeURIComponent(window.location.pathname);
});

socket.on('close', function() {
Expand Down

0 comments on commit 8b8277c

Please sign in to comment.