I am using Orchard 1.9.2 and have a workflow setup to send an email out with the {Content.EditUrl} token in it. It works fine as long as the content has been published at least once, but if it has only been saved as a draft and never published then it just shows up blank in the email when the workflow is triggered.
Is this is a bug? Is there a workaround?
The issue was I was using just a regular Get, _contentManager.Get(id)
, when I should have been using _contentManager.GetLatest(id)
when triggering the event.