Skip to content

Commit

Permalink
Pass config() to live preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Jul 12, 2024
1 parent 01fc4a9 commit bc643dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Entries/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,7 @@ private function resolvePreviewTargetUrl($format)
}

return (string) Antlers::parse($format, array_merge($this->routeData(), [
'config' => config()->all(),
'site' => $this->site(),
'uri' => $this->uri(),
'url' => $this->url(),
Expand Down

0 comments on commit bc643dd

Please sign in to comment.