Why slash is removed after domain?

I just hit this issue as well and realised I had:

define( 'PATH_CURRENT_SITE', '' );

in one of my configs and it should’ve been:

define( 'PATH_CURRENT_SITE', "https://wordpress.stackexchange.com/" );