From 234e1cdc21710d65dc4f98c71b9329672ce05dad Mon Sep 17 00:00:00 2001 From: James Cocker Date: Mon, 15 Mar 2021 13:11:45 +0000 Subject: [PATCH] Include action in locale links Fixes #458 --- src/Model/RecordLocale.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/RecordLocale.php b/src/Model/RecordLocale.php index ecc0f540..7cb279ea 100644 --- a/src/Model/RecordLocale.php +++ b/src/Model/RecordLocale.php @@ -209,7 +209,8 @@ public function getLink() } // Get link from localised record - return $record->Link(); + $action = Controller::curr()->getRequest()->params()['Action'] ?? null; + return $record->Link($action); } /**