{Content.EditUrl} token does not work for content that was never published

Topics: Administration, General, Troubleshooting, Writing modules
May 26 at 9:06 PM
Edited May 26 at 9:28 PM
I 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.

Is this is a bug?
Jun 2 at 11:55 PM
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.
Marked as answer by matthewjamesr on 6/2/2016 at 3:55 PM