Fixing wrong Live-Preview-Link in SilverStripeNavigatorItem_LiveLink (fixes #865).

This commit is contained in:
Stephan Bauer 2018-10-06 21:32:58 +02:00
parent eea9127e70
commit c498aa0337

View File

@ -47,7 +47,7 @@ class SilverStripeNavigatorItem_LiveLink extends SilverStripeNavigatorItem
public function getLink() public function getLink()
{ {
return Controller::join_links($this->record->PreviewLink(), '?stage=Live'); return Controller::join_links($this->getLivePage()->PreviewLink(), '?stage=Live');
} }
public function canView($member = null) public function canView($member = null)