$page->previewUrl()
Returns the preview URL with authentication for drafts and versions
$page->previewUrl()
has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
$page->previewUrl(Kirby\Content\VersionId|string $versionId = 'latest'): string|null
Parameters
Name | Type | Default |
---|---|---|
$versionId | Kirby\Content\VersionId orstring |
'latest'
|
Return types
string
ornull