Skip to content

Kirby 5.0.1

$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\VersionIdorstring 'latest'

Return types

stringornull

Parent class

Kirby\Cms\Page