Make sure we redirect to the drive if we access the login page from the homepage
parent
55fb0f03ae
commit
54b0a86c2e
|
@ -1176,11 +1176,15 @@ define([
|
|||
}
|
||||
});
|
||||
$userAdmin.find('a.login').click(function (e) {
|
||||
sessionStorage.redirectTo = window.location.href;
|
||||
if (window.location.pathname !== "/") {
|
||||
sessionStorage.redirectTo = window.location.href;
|
||||
}
|
||||
window.location.href = '/login/';
|
||||
});
|
||||
$userAdmin.find('a.register').click(function (e) {
|
||||
sessionStorage.redirectTo = window.location.href;
|
||||
if (window.location.pathname !== "/") {
|
||||
sessionStorage.redirectTo = window.location.href;
|
||||
}
|
||||
window.location.href = '/register/';
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue