The preview button lets you preview pages at different stages (for example published, saved-but-not-yet-published, and scheduled-to-be-published). How can the preview endpoint differentiate these so it can eventually redirect the user to a different URL for each?
For example, let's say I have an about page.
- Clicking the preview when the page is published would go to mysite.com/about/
- Clicking the preview when changes have been made and saved, but not published would go to mysite.com/about/preview
- Clicking the preview when it's a scheduled release would go to, for example mysite.com/about?scheduled=2020-11-05
The point of this is that the end user is made aware through the URL what they are viewing (e.g. published page vs scheduled preview for a particular date).
Is this possible? I can see that the preview token has different structure seemingly based on the type, e.g. separators like : or ~, could these be used to figure out what type of preview this is? Is the token structure documented somewhere?