Hi Community,
I’m working on a Frappe app, and I want to change the default login page route.
Currently, the login page appears at:
http://localhost:8001/#login
But I want to access the login page using a clean and custom URL like:
http://localhost:8001/demologin
I understand that #login
is a hash route handled on the frontend (JS), but I want to know:
- How can I change the route so that
/demologin
opens the login page instead of using the hash (/#login
)? - Do I need to make changes in
login.js
or create a new route in Frappe? - What is the best practice to achieve this clean URL behavior?
Any guidance or examples would be appreciated. Thanks!