mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Fixing wrong Live-Preview-Link in SilverStripeNavigatorItem_LiveLink (fixes #865).
This commit is contained in:
parent
eea9127e70
commit
c498aa0337
@ -47,7 +47,7 @@ class SilverStripeNavigatorItem_LiveLink extends SilverStripeNavigatorItem
|
||||
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user