View Website - Based on Role

HI all,

I need to set Login Redirect page separately for two different roles:
if Admin Logins, He should redirect to Website /dashboard page. Not /desk.
If Supplier Logins, he should redirect to /desk as usual.

Also, from View Website in Desk menu
Based on the Role, two different system users want to see different webpages.
For example if Administrator take menu from avatar > View Website >Dashboard.
And a Supplier (also a System User) if take menu from avatar > View Website > (should see Product page)

I have edited user.py: But it still redirect to /dashboard for Supplier!, even the content is restricted to view for suppliers!

@frappe.whitelist(allow_guest=True)
def update_password(new_password, key=None, old_password=None):
....................
if frappe.db.get_value("User", user, "user_type")=="System User":
		#return "/desk"
		roles=get_all_roles(user)
		if 'Supplier' in roles:
			return "/desk"
		else:
			return "/dashboard"
	else:		
		return "/"

Help need

You will have to make changes to login.py. Add your redirects toget_context