Skip to content

Commit

Permalink
Merge pull request #6 from moritz-sauer-13/main
Browse files Browse the repository at this point in the history
Update Job.php
  • Loading branch information
chromos33 authored May 29, 2024
2 parents f201cc9 + c8dcac6 commit 1f40679
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DataObjects/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Job;

use SilverStripe\Control\Controller;
use SilverStripe\Dev\Debug;
use SilverStripe\Assets\File;
use SilverStripe\ORM\DataObject;
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 1f40679

Please sign in to comment.