Hi Partner,
Prerequisite: make sure a test code could run on Home page.
You could try code below on your Home page.
var username = $('.username').text();
if (username != "") {
if (username == "Alejandro Pomeroy12") {
if (localStorage.getItem('status') == null) {
localStorage.setItem('status', 'logged');
window.location.href = "/test";
}
}
} else {
localStorage.removeItem('status');
}
That's because if a user sign in portal, then his/her name will display on top right corner,

then we could grab text of the element as condition to check whether user has logged.
Process is below:
1.1 If guest -> do nothing(remove localstorage item)
1.2 If user has logged out -> remove localstorage item(to make user could still be redirected if he sign in again)
2.1 If user value not equals a specific value, do nothing.
2.2 If user value equals a specific value, then go to next step
3. The first time when user enters Home page, "status" item not exists, then we add the item and redirect user to page.
4. When user navigates back to Home page, due to the item has been added, so we do nothing for him.
5. When user logged out, then back to 1.2
In addition, the code only works when you enter sign in page from home page because we only add it to Home web template;
you could move it to header to test whether it could work for all pages.
Regards,
Clofly