Skip to content

Commit

Permalink
Preserve action passed to AbsoluteLink()
Browse files Browse the repository at this point in the history
  • Loading branch information
kinglozzer committed Dec 6, 2023
1 parent 33c8172 commit 942d504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Control/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ protected function getReturnUrl()
}

/**
* @param string $action
* @return string
*/
public function AbsoluteLink($action = '')
{
return static::join_links(Director::absoluteBaseURL(), $this->Link());
return static::join_links(Director::absoluteBaseURL(), $this->Link($action));
}

/**
Expand Down

0 comments on commit 942d504

Please sign in to comment.