Redirect to the pad when logging in or signing up from a pad

This commit is contained in:
yflory
2017-02-14 11:29:08 +01:00
parent 92050eb04f
commit 71b84afdb2
3 changed files with 24 additions and 2 deletions

View File

@@ -465,9 +465,11 @@ define([
window.location.href = '/';
});
$userAdmin.find('a.login').click(function (e) {
sessionStorage.redirectTo = window.location.href;
window.location.href = '/login/';
});
$userAdmin.find('a.register').click(function (e) {
sessionStorage.redirectTo = window.location.href;
window.location.href = '/register/';
});