Function/shortcode to display subsites directory or username (same)

I want to put a dynamic url on a page. The link is to another site of mine but with the same users. So it also includes the site admins same username. The same as the sub sites folder or sub directory.

Hoping you could help with a function so I could do this on the page.

I know some functions show only to logged in users but I want this to be visible to all, not just logged in users.

Thank you!!!