How can I programmatically add a link that redirects users to Drupal Parent site?

I’m currently building a drupal multi-site and I’m trying to figure out if there was a way to add a link programmatically that redirects to the Drupal Parent Site

Using {{ url('<front>') }} only redirects to the home page of the multi-site. I could just add it manually but I was searching to make it dynamic instead.