Trigger redirect affter login

can i trigger login, i want redirect to other app when user login in frappe

example: when login by username = “test” will redirect to discus.frappe.io, and all other user will redirect to /app/ normaly

It is not easily possible, you have to change the whole logic structure.

@NCP

I just want when the user’s name is “test” to switch to appdomain/insights, the rest remains the same
because the test user does not have permission to access the frappe app

Please check it.



it not work,

Please check the reference:

can not redirect to /insights because i would not it access any doctype, just insights page

I am not sure, it worked or not, but try it yourself.