//Access control list. Allowed customer roles
var allowedCustomerRolesIds = _workContext.CurrentCustomer.CustomerRoles
.Where(cr => cr.Active).Select(cr => cr.Id).ToList();
Hi jkeeler,
Please note that the Loin popup uses Ajax calls to make the login.
So you need to make the redirect in the javascript instead.
Currently if the login is successful we simply reload the current page.
If you want to redirect to a specific page you need to change that code.
In the Pavilion.js file you need to find this function handleLoginModalPopup and change this line of code:
if (dataObj.find('#login-modal-window-static-resources').length > 0) {
updateLoginPopup(data);
} else {
window.location.reload();
}
window.location.href = "https://your-new-location";