Let assume my multisite is main.com and my subsite

Hi,
Let assume my multisite is main.com and my subsite is main.com/myclientsite and mapped domain is myclientsite.com
. So usually when i create a hyperlink for my clientsite, i do like this "\gallery" so i know it it will always go to "myclientsite.com/gallery". but that happen if i mapped my domain. if i do not map my domain just yet (due to testing new site) the link will go to "main.com/gallery" instead of "main.com/myclientsite/gallery" is there any fix or setting that will ensure both will work? i hope u understand my question. thanks in advance.