title: Salesforce popout custom link base url
body: <p>I'm trying to assign a base url to this popout. Currently the popout is sitting in a managed package page so whenever I visit <code>/apex/mypage</code> it is running under the managed package domain prefix (e.g. <code>c2g.cs65.force.com/apex</code>) and bombs out. </p>
  
  <p>When I manually hardcoded the url as <code>cs65.force.com/apex/mypage</code> it worked just fine. I know in formulas and visualfoce I could just do something like <code>$site.baseurl</code> but that doesn't seem to work here.</p>
  
  <p><a href="https://i.stack.imgur.com/h3gBB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h3gBB.png" alt="enter image description here"></a></p>
  
  <p>Thanks!</p>