[webpack.login] login successful redirects to URL page (allows direct access)

This commit is contained in:
xdrm-brackets 2018-03-20 12:09:26 +01:00
parent c8c1bf2ede
commit ad67e62680
1 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,9 @@ window.cas_callback = function(cas_login){
gstore.get.login_error_text = 'Vous êtes connectés. Vous allez être redirigé.';
gstore.get.login_class = 'valid';
setTimeout(function(){ document.location = '/'; }, 1500);
var redirect_url = `/${gstore.get.URI.join('/')}`;
setTimeout(function(){ document.location = redirect_url; }, 1500);
}