Hi,
If it can help your dev team, the get_admin_url() function will give the correct base URL for the back-office:
get_home_url() = https://mysite.com
get_site_url() = https://mysite.com/wp
get_admin_url() = https://mysite.com/wp/wp-admin/
Best regards,
Olivier Blanc