From c8dcac6dc06c897c3ed6c3a15ea47a4dca0b2902 Mon Sep 17 00:00:00 2001 From: Moritz Sauer <43135946+moritz-sauer-13@users.noreply.github.com> Date: Tue, 28 May 2024 16:50:05 +0200 Subject: [PATCH] Update Job.php Updated Link function --- src/DataObjects/Job.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DataObjects/Job.php b/src/DataObjects/Job.php index b4ff687..19a136f 100644 --- a/src/DataObjects/Job.php +++ b/src/DataObjects/Job.php @@ -2,6 +2,7 @@ namespace Job; +use SilverStripe\Control\Controller; use SilverStripe\Dev\Debug; use SilverStripe\Assets\File; use SilverStripe\ORM\DataObject; @@ -45,7 +46,7 @@ class Job extends DataObject public function Link($action_ = null) { - return $this->JobsPage()->Link() . "job/" . $this->URLSegment; + return Controller::join_links($this->JobsPage()->Link(), "job", $this->URLSegment); } public function onBeforeWrite()