// JS Goes here - ES6 supported
if (window.netlifyIdentity) {
  window.netlifyIdentity.on('login', () => {
    document.location.href = '/admin/';
  });
}

@@ -51,16 +51,57 @@
 Identity
+ && !window.netlifyIdentity.currentUser()
 ) %7B%0A  wi

Fix issue with always redirecting to /admin when logged in