Generate URL to open record in a site

I have a group of heads-down task workers who are going to start using a site to interact with an application that manages their group's work queue. This application sometimes sends emails to these people to notify them of updates to records that are relevant to them, and in this email I include a link directly to the record of interest. However, I have not found a way to dynamically generate a link to a record that opens in a site rather than in Tempo.

After some experimentation, I've found that the URL stub of a record is not always the same in the Tempo environment as when it's opened in a site, so I cannot simply use urlforrecord(), take the URL stub from there, and generate a URL of the form suite/sites/site-name/[URL stub here]/view/summary. Has anyone else encountered or found a solution to this problem?

OriginalPostID-261356

  Discussion posts and replies are publicly visible