mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2287 from sb-relaxt-at/4.2
Fixing wrong Live-Preview-Link in SilverStripeNavigatorItem_LiveLink
This commit is contained in:
commit
44b600814a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user