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
  3. Checked

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