Skip to content

Commit

Permalink
feat: add absolute base url for locale
Browse files Browse the repository at this point in the history
  • Loading branch information
tractorcow committed Aug 31, 2023
1 parent 6313e6d commit 9d04d7a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Model/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,16 @@ public function getBaseURL()
return $base;
}

/**
* Absolute base url
*
* @return false|string
*/
public function getAbsoluteBaseURL()
{
return Director::absoluteURL($this->getBaseURL());
}

/**
* Get other locales that appear alongside this (including self)
*
Expand Down

0 comments on commit 9d04d7a

Please sign in to comment.