Token to get the latest revision's URL Drupal version: Drupal core 9.1.5.
I am using Content Moderation and Workflows modules along with Workbench Email contrib module to generate the Email Templates. Workbench Email module uses Tokens for creating dynamic email templates. We have a requirement to provide the URL of the latest revision inside the email body to the reviewer so that he can see the latest updates.

If I create a node that needs moderation, the /node/NID/latest page does not exist. Here reviewer will need link to /node/NID.
When the content is already published and now if gets edited, the link in the email should be /node/NID/latest. If we just provide /node/NID in the URL, it won't show the updated content.

Since we can have only one template to handle both of the above conditions, I was looking for a token which could provide me either /node/NID or /node/NID/latest based on whether the content is new or already published.
Can someone please assist on how can I move further?
The token needs to be available in the email? I've not created custom tokens in D8 yet but in d7 We'd make a custom token and the value would be set in the token definition based on condition.