When using ERPNext through a proxy (e.g. erpnext.mycompany.com proxies to http://ec2-xxx-xxx-xxx-xxx.eu-central-1.compute.amazonaws.com/):
- When no user is logged in it correctly presents the homepage, which I’ve set to the login page
- When the user logs in it correctly forwards to erpnext.mycompany.com/desk
- When a logged in user tries to access erpnext.mycompany.com it raises a 301 redirect and forwards to http://ec2-xxx-xxx-xxx-xxx.eu-central-1.compute.amazonaws.com/desk This behaviour isn’t as expected.
It seems to come down to how frappe.Redirect is handled. I can’t find whether and how it’s possible to change this to a relative redirect instead of a full path, or alternatively whether it’s possible for it to use the correct url in the full redirect.