We need to create a url in our managed app (so the mydomain will vary each time) and I thought one slution would be with a UI formula field and using merge syntax
Thanks Matt … Two reasons … we have a managed app and with the removing of instance names by sf I was trying to arrive at a solution. Also, we need to display a few std salesforce pages (without header and sidebar) and the relative url method in an iframe has stopped working for us. If I use a full url it does the job but obviously for us the full url only works on our dev org.
So the merge function {{$Site.CurrentSiteUrl}} only works in the context of Force.com sites (and maybe communities). See the doc here. My understanding is that we are depending on the underlying VF global variables, which are not present for standard pages.
Supporting this requirement may require the population of that field with some code. Dang…
This provided us with the sf domain which we need but when I use this in an iframe on a template skuid overwrites it with the skuid url and sf then blocks the iframe.
Anyway to override skuid switching the url from vanilla salesforce just this time?
I think your missing the namespace in your URL within the iFrame. Skuid is forcing its namespace back onto the page. You can either use the global namespace (c__) , or your own manage package namespace.
Admittedly this is a shot in the dark on a Sunday night. But I think there is merit there.