Password reset email goes with incorrect port 8000

When resetting the password the url goes with port 8000. Can’t figure out where is this 8000 coming from?

Checked the following:

  1. site_config.json - Couldn’t find it here.
  2. Checked code https://github.com/frappe/frappe/blob/a7de780715514e9b6082f373288a1d5bc63fac00/frappe/utils/verified_command.py
  3. Checked https://github.com/frappe/frappe/blob/f3b959b1fe89fb4ea66e88b3f600c9869da791d5/socketio.js

How to figure out where is frappe.utils located as that’s the one that is fired?

Thanks in advance

Found out that the port 8000 is automatically appended if the site is in the developer mode.

I am using the below version:
Installed Apps
ERPNext: v11.0.3-beta.24 () (develop)

Frappe Framework: v11.0.3-beta.29 () (develop)

Should I raise a bug or is this the intended behavior. There is no site running on port 8000 as of now.

This may fix