Skip to content

Commit

Permalink
Update Job.php
Browse files Browse the repository at this point in the history
Updated Link function
  • Loading branch information
moritz-sauer-13 authored May 28, 2024
1 parent f201cc9 commit c8dcac6
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 c8dcac6

Please sign in to comment.