Nav Bar Home page redirect by user

Thanks to all the great documentation on here I have been able to redirect users to different home pages upon login based on their group/role. I am trying to do the same thing for the Nav Bar Home button (item). I added a Dynamic Event for click and applied the same ternary operator logic. The issue is I keep being directed to the /index page because I have the Link blank. I have reviewed the two table approach but that doesn’t exactly solve what I’m trying to do (at least in my feeble brain). Is there a way to redirect this single nav bar item based upon group/role?

https://community.wappler.io/t/two-table-approach-to-user-security-permissions/2793

Current Nav Item Properties:
image

Logic I’m trying to implement for single Home Nav Bar Item
image

Please bear in mind I have minimal programming knowledge and am new to Wappler. Thanks for any help this great community can provide!

Instead of a click event try using a dynamic attribute of link

1 Like

Sorry_Duh, thanks for coming to the rescue again! That did the trick!

1 Like