i have two web roles when each role logins i need to show different login page
{% if user %}
{%assign createResult = sitemarkers['Create Result']%}
{%assign createContact = sitemarkers['Create Contact']%}
{% if user.roles contains ['Company Admin'] %}
<script>
window.location = '{{createContact.url}}';
</script>
{% elseif user.roles contains['Employee'] %}
<script>
window.location = '{{createResult.url}}';
</script>
{% endif %}
{% endif %}
i kept this code in the home webpage for the webroles its working fine
but when i click on the home page it should show me home page which is not happening could you tell me how to do that