Hi
I'm sending an email, from workflow event After_approve, the workflow applied for a page type.
I need to include the link to the edit page on the admin content tree
How to get edit link
I'm currently using long code and I dont think it's the right way
can you please advise
var contentGuid = CMS.Modules.UIElementInfoProvider.GetUIElementInfo("CMS.Content", "content").ElementGUID;
string adminUrl = ResolveSiteUrl(SiteContext.CurrentSite);
string culture = ValidationHelper.GetString(e.Document.DocumentCulture, string.Empty);
string queryforURL = String.Format("?action=edit&nodeid={0}&culture={1}#{2}", e.Document.NodeID, culture, contentGuid.ToString());
adminUrl += queryforURL;