
Hi @Robert94
You can mix liquid and JS together to achieve this. High-level idea
$(document).ready(function () {
var roles = "{{ user.roles }}";
console.log(roles);
if(roles.contains("Administrators") > 0)
alert("I am Admin");
});
The above script is using web role. Instead of alert, you can redirect to the specific page.
official example
{% if user %}
Hello, {{ user.fullname | escape }}!
{% else %}
Hello, anonymous user!
{% endif %}
Official URL: Please click here
Hope it helps.
------------
If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.